Exception: Odin::Errors::OdinError
- Inherits:
-
StandardError
- Object
- StandardError
- Odin::Errors::OdinError
- Defined in:
- lib/odin/types/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ OdinError
constructor
A new instance of OdinError.
Constructor Details
#initialize(code, message) ⇒ OdinError
Returns a new instance of OdinError.
92 93 94 95 |
# File 'lib/odin/types/errors.rb', line 92 def initialize(code, ) @code = code super("[#{code}] #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
90 91 92 |
# File 'lib/odin/types/errors.rb', line 90 def code @code end |