Exception: EppErrorResponse
- Inherits:
-
StandardError
- Object
- StandardError
- EppErrorResponse
- Defined in:
- lib/epp/exceptions.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ EppErrorResponse
constructor
Generic EPP exception.
- #to_s ⇒ Object
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] = attributes[:message] end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
2 3 4 |
# File 'lib/epp/exceptions.rb', line 2 def response @response end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/epp/exceptions.rb', line 10 def to_s "#{@message} (code #{@response_code})" end |