Errors

Yt::Errors define error classes that are raised when something goes wrong.

channel = Yt::Channel.new id: 'this-id-does-not-exist'
channel.title # => raise Yt::Errors::NoItems

List of errors

No Items

Yt::Errors::NoItems is raised when items are expected from YouTube but none are returned.

channel = Yt::Channel.new id: 'this-id-does-not-exist'
channel.title # => raise Yt::Errors::NoItems