Exception: UploadError
- Inherits:
-
YouTubeIt::Error
- Object
- RuntimeError
- YouTubeIt::Error
- UploadError
- 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) ⇒ UploadError
constructor
A new instance of UploadError.
Constructor Details
#initialize(msg, code = 0) ⇒ UploadError
Returns a new instance of UploadError.
3 4 5 6 |
# File 'lib/youtube_it/request/error.rb', line 3 def initialize(msg, code = 0) super(msg) @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
2 3 4 |
# File 'lib/youtube_it/request/error.rb', line 2 def code @code end |