|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
badpenguin.dkim.DkimException
public class DkimException
This is a class of exceptions which are thrown by the JavaDKIM library when
things go wrong. These Exceptions always include a DkimError, which includes a
short status string, an ErrorType (NOSIG, PASS, PERMFAIL, TEMPFAIL, or LIBERROR),
and a description.
You will probably want to decide what to do with the exception based on the ErrorType.
Constructor Summary | |
---|---|
DkimException(DkimError arg0)
Create a DKIM Exception by specifying only the DkimError. |
|
DkimException(DkimError arg0,
java.lang.String arg1)
Create a DKIM Exception by specifying the DkimError type and a descriptive message of the problem. |
|
DkimException(DkimError arg0,
java.lang.String arg1,
java.lang.Throwable e)
Create a DKIM Exception by specifying the DkimError type, a descriptive message of the problem, and a Throwable cause. |
|
DkimException(DkimError arg0,
java.lang.Throwable e)
Create a DKIM Exception by specifying the DkimError type and a Throwable cause. |
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
Return the root cause of this Exception, if there was one. |
DkimError |
getError()
Get the DkimError type for this exception. |
ErrorType |
getErrorType()
Return the ErrorType of this Exception |
java.lang.String |
getMessage()
Return the error description provided when this exception was thrown, or the default description from DkimError.getDescription(), if no description was specified. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DkimException(DkimError arg0)
arg0
- - DkimErrorpublic DkimException(DkimError arg0, java.lang.String arg1)
arg0
- - DkimErrorarg1
- - Description of the errorpublic DkimException(DkimError arg0, java.lang.Throwable e)
arg0
- - DkimErrore
- - Throwable causepublic DkimException(DkimError arg0, java.lang.String arg1, java.lang.Throwable e)
arg0
- - DkimErrorarg1
- - Description of the errore
- - Throwable causeMethod Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public DkimError getError()
public ErrorType getErrorType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |