Exception: Malipopay::ValidationError
- Defined in:
- lib/malipopay/errors.rb
Overview
Raised when request parameters fail validation (400/422)
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, errors: nil, **kwargs) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(message = nil, errors: nil, **kwargs) ⇒ ValidationError
Returns a new instance of ValidationError.
28 29 30 31 |
# File 'lib/malipopay/errors.rb', line 28 def initialize( = nil, errors: nil, **kwargs) @errors = errors super(, **kwargs) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
26 27 28 |
# File 'lib/malipopay/errors.rb', line 26 def errors @errors end |