Exception: YouTubeIt::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- YouTubeIt::Error
- Defined in:
- lib/youtube_it.rb
Overview
Base error class for the extension
Direct Known Subclasses
AuthenticationError, UploadError, Upload::AuthenticationError, Upload::UploadError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code = 0) ⇒ Error
constructor
A new instance of Error.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
15 16 17 |
# File 'lib/youtube_it.rb', line 15 def code @code end |