Exception: Mailclerk::MailclerkAPIError

Inherits:
MailclerkError show all
Defined in:
lib/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description, http_status = nil, http_response = nil) ⇒ MailclerkAPIError

Returns a new instance of MailclerkAPIError.



9
10
11
12
13
# File 'lib/errors.rb', line 9

def initialize(description, http_status=nil, http_response=nil)
  super(description)
  self.http_status = http_status
  self.http_response = http_response
end

Instance Attribute Details

#http_responseObject

Returns the value of attribute http_response.



7
8
9
# File 'lib/errors.rb', line 7

def http_response
  @http_response
end

#http_statusObject

Returns the value of attribute http_status.



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

def http_status
  @http_status
end