Exception: UniversaTools::CodeException
- Inherits:
-
MessageException
- Object
- Exception
- MessageException
- UniversaTools::CodeException
- Defined in:
- lib/universa_tools/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, text = nil) ⇒ CodeException
constructor
A new instance of CodeException.
Constructor Details
#initialize(code, text = nil) ⇒ CodeException
Returns a new instance of CodeException.
9 10 11 12 13 |
# File 'lib/universa_tools/errors.rb', line 9 def initialize code, text = nil text ||= code @code = code super(text) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/universa_tools/errors.rb', line 7 def code @code end |