Exception: Flows::Plugin::OutputContract::ResultTypeError
- Defined in:
- lib/flows/plugin/output_contract/errors.rb
Overview
Raised when not a result object returned
Instance Method Summary collapse
-
#initialize(klass, result) ⇒ ResultTypeError
constructor
A new instance of ResultTypeError.
- #message ⇒ Object
Constructor Details
#initialize(klass, result) ⇒ ResultTypeError
Returns a new instance of ResultTypeError.
59 60 61 62 |
# File 'lib/flows/plugin/output_contract/errors.rb', line 59 def initialize(klass, result) @klass = klass @result = result end |
Instance Method Details
#message ⇒ Object
64 65 66 67 68 69 70 |
# File 'lib/flows/plugin/output_contract/errors.rb', line 64 def "Output contract for #{@klass} is violated.\n" \ "Result:\n" \ " `#{@result.inspect}`\n" \ "Contract Error:\n" \ ' result must be instance of `Flows::Result`' end |