Exception: PayuPl::ValidationError

Inherits:
Error
  • Object
show all
Defined in:
lib/payu_pl/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message)
  @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