---
title: "Yt::Errors"
h2: "Errors"
---
Yt::Errors
define error classes that are raised when something goes wrong.
{% highlight ruby %}
channel = Yt::Channel.new id: 'this-id-does-not-exist'
channel.title # => raise Yt::NoItemsError
{% endhighlight %}
List of errors
{% include dt.html title="No Items" %}
Yt::NoItemsError
is raised when items are expected from YouTube but none are returned.
{% highlight ruby %}
channel = Yt::Channel.new id: 'this-id-does-not-exist'
channel.title # => raise Yt::NoItemsError
{% endhighlight %}