Exception: SynergyWholesale::Errors::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/synergy_wholesale/errors/error.rb

Direct Known Subclasses

BadDataError, ResponseError

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



5
6
7
# File 'lib/synergy_wholesale/errors/error.rb', line 5

def command
  @command
end

#responseObject (readonly)

Returns the value of attribute response.



5
6
7
# File 'lib/synergy_wholesale/errors/error.rb', line 5

def response
  @response
end

Class Method Details

.new(message, command, response) ⇒ Object



7
8
9
10
11
# File 'lib/synergy_wholesale/errors/error.rb', line 7

def self.new(message, command, response)
  @command  = command
  @response = response
  super(message)
end