Exception: EppErrorResponse

Inherits:
StandardError
  • Object
show all
Defined in:
lib/epp/exceptions.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ EppErrorResponse

Generic EPP exception. Accepts a response code and a message



5
6
7
8
# File 'lib/epp/exceptions.rb', line 5

def initialize(attributes = {})
  @response_code = attributes[:code]
  @message = attributes[:message]
end

Instance Attribute Details

#responseObject

Returns the value of attribute response.



2
3
4
# File 'lib/epp/exceptions.rb', line 2

def response
  @response
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/epp/exceptions.rb', line 10

def to_s
  "#{@message} (code #{@response_code})"
end