Exception: AuthenticationError
- Inherits:
-
YouTubeIt::Error
- Object
- RuntimeError
- YouTubeIt::Error
- AuthenticationError
- Defined in:
- lib/youtube_it/request/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code = 0) ⇒ AuthenticationError
constructor
A new instance of AuthenticationError.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/youtube_it/request/error.rb', line 10 def code @code end |