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.



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

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



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

def code
  @code
end