Exception: Errapi::ValidationFailed
- Defined in:
- lib/errapi/errors.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(context) ⇒ ValidationFailed
constructor
A new instance of ValidationFailed.
Constructor Details
#initialize(context) ⇒ ValidationFailed
Returns a new instance of ValidationFailed.
10 11 12 13 |
# File 'lib/errapi/errors.rb', line 10 def initialize context super "#{context.errors.length} errors were found during validation." @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
8 9 10 |
# File 'lib/errapi/errors.rb', line 8 def context @context end |