Exception: StarkBank::Error::Error
- Inherits:
-
StandardError
- Object
- StandardError
- StarkBank::Error::Error
- Defined in:
- lib/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, message) ⇒ Error
9 10 11 12 13 |
# File 'lib/error.rb', line 9 def initialize(code, ) @code = code = super("#{code}: #{message}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/error.rb', line 8 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
8 9 10 |
# File 'lib/error.rb', line 8 def end |