Exception: Protein::CallError
- Inherits:
-
StandardError
- Object
- StandardError
- Protein::CallError
- Defined in:
- lib/protein/errors.rb
Instance Method Summary collapse
-
#initialize(errors) ⇒ CallError
constructor
A new instance of CallError.
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 |