Exception: PayuPl::ValidationError
- Defined in:
- lib/payu_pl/errors.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
Instance Method Summary collapse
-
#initialize(errors:, input: nil, message: "Validation failed") ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(errors:, input: nil, message: "Validation failed") ⇒ ValidationError
Returns a new instance of ValidationError.
9 10 11 12 13 |
# File 'lib/payu_pl/errors.rb', line 9 def initialize(errors:, input: nil, message: "Validation failed") super() @errors = errors @input = input end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
7 8 9 |
# File 'lib/payu_pl/errors.rb', line 7 def errors @errors end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
7 8 9 |
# File 'lib/payu_pl/errors.rb', line 7 def input @input end |