Package com.verisign.epp.interfaces
Class EPPCommandException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.verisign.epp.exception.EPPException
com.verisign.epp.interfaces.EPPCommandException
- All Implemented Interfaces:
Serializable
Exception thrown when an error is recognized by one of the
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.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEPPCommandException(String aDescription) Constructs an Exception with the specified detailed message.EPPCommandException(String aDescription, EPPResponse aResponse) Constructs an Exception with the specified detailed message and an associated server error response.EPPCommandException(String aDescription, Throwable aCause) Constructs an Exception with the specified detailed message.EPPCommandException(String aDescription, Throwable aCause, EPPResponse aResponse) Constructs an Exception with the specified detailed message and an associated server error response. -
Method Summary
Modifier and TypeMethodDescriptionGets the server error response associated with the exception.booleanIs there a server error response associated with the exception? Iftrue,getResponsecan be used to retrieve the response.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EPPCommandException
Constructs an Exception with the specified detailed message. This message should provide information about the source, reasons and any other useful facts that could justifies the reason the exception is thrown.- Parameters:
aDescription- String containing a detailed message.
-
EPPCommandException
Constructs an Exception with the specified detailed message. This message should provide information about the source, reasons and any other useful facts that could justifies the reason the exception is thrown.- Parameters:
aDescription- String containing a detailed message.aCause- Cause of theEPPCommandException
-
EPPCommandException
Constructs an Exception with the specified detailed message and an associated server error response. This message should provide information about the source, reasons and any other useful facts that could justifies the reason the exception is thrown.- Parameters:
aDescription- String containing a detailed message.aCause- Cause of theEPPCommandExceptionaResponse- Server error response associated with the exception
-
EPPCommandException
Constructs an Exception with the specified detailed message and an associated server error response. This message should provide information about the source, reasons and any other useful facts that could justifies the reason the exception is thrown.- Parameters:
aDescription- String containing a detailed message.aResponse- Server error response associated with the exception
-
-
Method Details
-
hasResponse
public boolean hasResponse()Is there a server error response associated with the exception? Iftrue,getResponsecan be used to retrieve the response.- Returns:
trueif there is a response;falseotherwise.
-
getResponse
Gets the server error response associated with the exception. If there is no associated error response,nullwill be returned.hasResponsecan be used to determine if there is a response before callinggetResponse.- Returns:
- EPPResponse Server error response if defined;
nullotherwise.
-