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