Exception: OmniflashSdk::Error
- Inherits:
-
StandardError
- Object
- StandardError
- OmniflashSdk::Error
- Defined in:
- lib/omniflash_sdk.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, code: nil, status: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code: nil, status: nil) ⇒ Error
Returns a new instance of Error.
23 24 25 26 27 |
# File 'lib/omniflash_sdk.rb', line 23 def initialize(, code: nil, status: nil) super() @code = code @status = status end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
22 23 24 |
# File 'lib/omniflash_sdk.rb', line 22 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
22 23 24 |
# File 'lib/omniflash_sdk.rb', line 22 def status @status end |