public class EPPCommandException extends EPPException
interfaces
classes. A server error response can be
associated with the exception. hasResponse
is used to
determine if there is an associated error response, and
getResponse
is used to get the error response from the
exception. EPPResponse
,
Serialized FormConstructor and Description |
---|
EPPCommandException(java.lang.String newDescription)
Constructs an Exception with the specified detailed message.
|
EPPCommandException(java.lang.String newDescription,
EPPResponse newResponse)
Constructs an Exception with the specified detailed message and an
associated server error response.
|
Modifier and Type | Method and Description |
---|---|
EPPResponse |
getResponse()
Gets the server error response associated with the exception.
|
boolean |
hasResponse()
Is there a server error response associated with the exception? If
true , getResponse can be used to retrieve
the response. |
public EPPCommandException(java.lang.String newDescription)
newDescription
- String containing a detailed message.public EPPCommandException(java.lang.String newDescription, EPPResponse newResponse)
newDescription
- String containing a detailed message.newResponse
- Server error response associated with the exceptionpublic boolean hasResponse()
true
, getResponse
can be used to retrieve
the response.true
if there is a response; false
otherwise.public EPPResponse getResponse()
null
will be returned.
hasResponse
can be used to determine if there is a
response before calling getResponse
.null
otherwise.