Exception: Change::Exceptions::ChangeException
- Inherits:
-
StandardError
- Object
- StandardError
- Change::Exceptions::ChangeException
- Defined in:
- lib/exceptions/change_exception.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize(messages, code = nil) ⇒ ChangeException
constructor
A new instance of ChangeException.
- #message ⇒ Object
Constructor Details
#initialize(messages, code = nil) ⇒ ChangeException
Returns a new instance of ChangeException.
8 9 10 11 |
# File 'lib/exceptions/change_exception.rb', line 8 def initialize(, code = nil) @code = code @messages = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/exceptions/change_exception.rb', line 5 def code @code end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
6 7 8 |
# File 'lib/exceptions/change_exception.rb', line 6 def @messages end |
Instance Method Details
#message ⇒ Object
13 14 15 |
# File 'lib/exceptions/change_exception.rb', line 13 def @messages.first end |