Exception: Solidgate::ValidationError

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

Overview

Validation error

Instance Attribute Summary collapse

Attributes inherited from Error

#code, #details

Instance Method Summary collapse

Constructor Details

#initialize(message, errors = {}) ⇒ ValidationError

Returns a new instance of ValidationError.



47
48
49
50
# File 'lib/solidgate/errors.rb', line 47

def initialize(message, errors = {})
  super(message)
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



45
46
47
# File 'lib/solidgate/errors.rb', line 45

def errors
  @errors
end