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.
84 85 86 87 |
# File 'lib/odin/types/errors.rb', line 84 def initialize(code, ) @code = code super("[#{code}] #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
82 83 84 |
# File 'lib/odin/types/errors.rb', line 82 def code @code end |