class EPPClient::EPPErrorResponse

This “strange” exception allows having more informative error messages.

Attributes

message[RW]
response_code[RW]
response_xml[RW]

Public Class Methods

new(attrs = {}) click to toggle source

An exception with an added field so that it can store the xml response that generated it.

# File lib/epp-client/exceptions.rb, line 8
def initialize(attrs = {})
  @response_xml = attrs[:xml]
  @response_code = attrs[:code]
  @message = attrs[:message]
end