Exception: Flows::Result::AccessError
- Defined in:
- lib/flows/result/errors.rb
Overview
Error for invalid data access cases
Instance Method Summary collapse
-
#initialize(result) ⇒ AccessError
constructor
A new instance of AccessError.
- #message ⇒ Object
Constructor Details
#initialize(result) ⇒ AccessError
Returns a new instance of AccessError.
8 9 10 |
# File 'lib/flows/result/errors.rb', line 8 def initialize(result) @result = result end |
Instance Method Details
#message ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/flows/result/errors.rb', line 12 def [ base_msg, " Result status: `#{@result.status.inspect}`", " Result data: `#{data.inspect}`", " Result meta: `#{@result..inspect}`" ].join("\n") end |