Exception: AuthenticationError

Inherits:
YouTubeIt::Error show all
Defined in:
lib/youtube_it/request/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code = 0) ⇒ AuthenticationError

Returns a new instance of AuthenticationError.



11
12
13
14
# File 'lib/youtube_it/request/error.rb', line 11

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'lib/youtube_it/request/error.rb', line 10

def code
  @code
end