Exception: Tebako::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Tebako::Error
- Defined in:
- lib/tebako/error.rb
Overview
Tebako error class
Instance Attribute Summary collapse
-
#error_code ⇒ Object
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(msg = "Unspecified error", code = 255) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg = "Unspecified error", code = 255) ⇒ Error
Returns a new instance of Error.
64 65 66 67 |
# File 'lib/tebako/error.rb', line 64 def initialize(msg = "Unspecified error", code = 255) @error_code = code super(msg) end |
Instance Attribute Details
#error_code ⇒ Object
Returns the value of attribute error_code.
68 69 70 |
# File 'lib/tebako/error.rb', line 68 def error_code @error_code end |