Exception: Braintree::ValidationsFailed

Inherits:
BraintreeError show all
Defined in:
lib/braintree/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_result) ⇒ ValidationsFailed

Returns a new instance of ValidationsFailed.


34
35
36
# File 'lib/braintree/exceptions.rb', line 34

def initialize(error_result)
  @error_result = error_result
end

Instance Attribute Details

#error_resultObject (readonly)

Returns the value of attribute error_result


32
33
34
# File 'lib/braintree/exceptions.rb', line 32

def error_result
  @error_result
end

Instance Method Details

#inspectObject


38
39
40
# File 'lib/braintree/exceptions.rb', line 38

def inspect
  "#<#{self.class} error_result: #{@error_result.inspect}>"
end

#to_sObject


42
43
44
# File 'lib/braintree/exceptions.rb', line 42

def to_s
  inspect
end