Exception: ChargeIO::ServerError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chargeio/errors/server_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code = nil, entity_id = nil) ⇒ ServerError

Returns a new instance of ServerError.


6
7
8
9
10
# File 'lib/chargeio/errors/server_error.rb', line 6

def initialize(message, code=nil, entity_id=nil)
  super(message)
  @code = code
  @entity_id = entity_id
end

Instance Attribute Details

#codeObject

Returns the value of attribute code


3
4
5
# File 'lib/chargeio/errors/server_error.rb', line 3

def code
  @code
end

#entity_idObject

Returns the value of attribute entity_id


4
5
6
# File 'lib/chargeio/errors/server_error.rb', line 4

def entity_id
  @entity_id
end