Exception: Protein::CallError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/protein/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ CallError

Returns a new instance of CallError.



3
4
5
6
7
8
9
# File 'lib/protein/errors.rb', line 3

def initialize(errors)
  super(
    errors.map do |error|
      error.reason.inspect + (error.pointer ? " (at #{error.pointer})" : "")
    end.join(", ")
  )
end