Exception: Llull::ResultError
- Inherits:
-
StandardError
- Object
- StandardError
- Llull::ResultError
- Defined in:
- lib/llull/result.rb
Overview
Custom exception for Result errors
Instance Attribute Summary collapse
-
#error_data ⇒ Object
readonly
Returns the value of attribute error_data.
-
#error_type ⇒ Object
readonly
Returns the value of attribute error_type.
Instance Method Summary collapse
-
#initialize(error_type, error_data) ⇒ ResultError
constructor
A new instance of ResultError.
Constructor Details
#initialize(error_type, error_data) ⇒ ResultError
Returns a new instance of ResultError.
235 236 237 238 239 |
# File 'lib/llull/result.rb', line 235 def initialize(error_type, error_data) @error_type = error_type @error_data = error_data super("Result failure: #{error_type} - #{error_data}") end |
Instance Attribute Details
#error_data ⇒ Object (readonly)
Returns the value of attribute error_data.
233 234 235 |
# File 'lib/llull/result.rb', line 233 def error_data @error_data end |
#error_type ⇒ Object (readonly)
Returns the value of attribute error_type.
233 234 235 |
# File 'lib/llull/result.rb', line 233 def error_type @error_type end |