Exception: EPP::ResponseError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- EPP::ResponseError
- Defined in:
- lib/epp-client/response_error.rb
Overview
Error response
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#xml ⇒ Object
Returns the value of attribute xml.
Instance Method Summary collapse
-
#initialize(code, msg, xml) ⇒ ResponseError
constructor
Create new ResponseError.
-
#message ⇒ String
Formatted Response error.
Constructor Details
#initialize(code, msg, xml) ⇒ ResponseError
Create new ResponseError
6 7 8 9 |
# File 'lib/epp-client/response_error.rb', line 6 def initialize(code, msg, xml) super(msg) @code, @xml = code, xml end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/epp-client/response_error.rb', line 4 def code @code end |
#xml ⇒ Object
Returns the value of attribute xml.
4 5 6 |
# File 'lib/epp-client/response_error.rb', line 4 def xml @xml end |
Instance Method Details
#message ⇒ String
Returns Formatted Response error.
11 12 13 |
# File 'lib/epp-client/response_error.rb', line 11 def "#{to_s} (code #{code})" end |