class Flows::Plugin::OutputContract::ResultTypeError
Raised when not a result object returned
Public Class Methods
new(klass, result)
click to toggle source
# File lib/flows/plugin/output_contract/errors.rb, line 59 def initialize(klass, result) @klass = klass @result = result end
Public Instance Methods
message()
click to toggle source
# File lib/flows/plugin/output_contract/errors.rb, line 64 def message "Output contract for #{@klass} is violated.\n" \ "Result:\n" \ " `#{@result.inspect}`\n" \ "Contract Error:\n" \ ' result must be instance of `Flows::Result`' end