Exception: YouTubeIt::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code = 0) ⇒ Error

Returns a new instance of Error.



4
5
6
7
# File 'lib/youtube_it/request/error.rb', line 4

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/youtube_it/request/error.rb', line 3

def code
  @code
end