Exception: Sdkey::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Sdkey::Error
- Defined in:
- lib/sdkey/errors.rb
Overview
Protocol and transport errors for the SDKey client.
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message, cause = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, message, cause = nil) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 |
# File 'lib/sdkey/errors.rb', line 8 def initialize(code, , cause = nil) super() @code = code @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
6 7 8 |
# File 'lib/sdkey/errors.rb', line 6 def cause @cause end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/sdkey/errors.rb', line 6 def code @code end |