|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ErrorType>
badpenguin.dkim.ErrorType
public enum ErrorType
This class contains the error groups that will be thrown by the Library. All DkimExceptions will hold information about the type of error...
NOSIG -- There was no Dkim or DomainKey Signature
TEMPFAIL -- Failed to verify Signature, but it may verify in future
PERMFAIL -- Siganture will never verify
LIBERROR -- The JavaDKIM library encountered an error
Enum Constant Summary | |
---|---|
LIBERROR
|
|
NOSIG
There was no DKIM or DomainKey Signature in the message |
|
PASS
The message Signature passed validation ;-) |
|
PERMFAIL
Permenant Failure encountered. |
|
TEMPFAIL
Temporary Failure encountered. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Get the detailed description of this ErrorType |
int |
getErrorCode()
Return the error code for this ErrorType |
static ErrorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ErrorType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ErrorType NOSIG
public static final ErrorType PASS
public static final ErrorType TEMPFAIL
public static final ErrorType PERMFAIL
public static final ErrorType LIBERROR
Method Detail |
---|
public static ErrorType[] values()
for (ErrorType c : ErrorType.values()) System.out.println(c);
public static ErrorType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDescription()
public int getErrorCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |