Exception: ApiRegulator::InvalidParams
- Inherits:
-
ValidationError
- Object
- StandardError
- ValidationError
- ApiRegulator::InvalidParams
- Defined in:
- lib/api_regulator/validation_error.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Attributes inherited from ValidationError
Instance Method Summary collapse
-
#initialize(errors) ⇒ InvalidParams
constructor
A new instance of InvalidParams.
Constructor Details
#initialize(errors) ⇒ InvalidParams
Returns a new instance of InvalidParams.
20 21 22 23 24 |
# File 'lib/api_regulator/validation_error.rb', line 20 def initialize(errors) @errors = errors @details = errors. super("Validation failed with errors, see details") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
18 19 20 |
# File 'lib/api_regulator/validation_error.rb', line 18 def errors @errors end |