Exception: Ragoon::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Ragoon::Error
- Defined in:
- lib/ragoon/error.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Instance Method Summary collapse
- #cause ⇒ Object
- #code ⇒ Object
- #counter_measure ⇒ Object
- #diagnosis ⇒ Object
-
#initialize(message = nil, details = {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, details = {}) ⇒ Error
Returns a new instance of Error.
2 3 4 5 |
# File 'lib/ragoon/error.rb', line 2 def initialize( = nil, details = {}) super() @details = details end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
7 8 9 |
# File 'lib/ragoon/error.rb', line 7 def details @details end |
Instance Method Details
#cause ⇒ Object
17 18 19 |
# File 'lib/ragoon/error.rb', line 17 def cause @details['cause'] end |
#code ⇒ Object
9 10 11 |
# File 'lib/ragoon/error.rb', line 9 def code @details['code'] end |
#counter_measure ⇒ Object
21 22 23 |
# File 'lib/ragoon/error.rb', line 21 def counter_measure @details['counter_measure'] end |
#diagnosis ⇒ Object
13 14 15 |
# File 'lib/ragoon/error.rb', line 13 def diagnosis @details['diagnosis'] end |