Exception: YouTubeIt::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/youtube_it.rb

Overview

Base error class for the extension

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code = 0) ⇒ Error

Returns a new instance of Error.



15
16
17
18
# File 'lib/youtube_it.rb', line 15

def initialize(msg, code = 0)
  super(msg)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



14
15
16
# File 'lib/youtube_it.rb', line 14

def code
  @code
end