Exception: AuthorizeNet::Exception

Inherits:
Exception
  • Object
show all
Defined in:
lib/authorize_net/exception.rb

Constant Summary collapse

GENERIC_ERROR_MESSAGE =
"[AuthorizeNet] The Authorize.Net API returned an error"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = GENERIC_ERROR_MESSAGE) ⇒ Exception

Returns a new instance of Exception.



8
9
10
11
# File 'lib/authorize_net/exception.rb', line 8

def initialize(message=GENERIC_ERROR_MESSAGE)
  @message = message
  @errors = []
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



6
7
8
# File 'lib/authorize_net/exception.rb', line 6

def errors
  @errors
end

#messageObject

Returns the value of attribute message.



5
6
7
# File 'lib/authorize_net/exception.rb', line 5

def message
  @message
end