Exception: Tubeclip::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Tubeclip::Error
- Defined in:
- lib/tubeclip/request/error.rb
Direct Known Subclasses
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.
4 5 6 7 |
# File 'lib/tubeclip/request/error.rb', line 4 def initialize(msg, code = 0) super(msg) @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/tubeclip/request/error.rb', line 3 def code @code end |