|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.beepcore.beep.core.BEEPException
org.beepcore.beep.core.BEEPError
Class BEEPError
Field Summary | |
static int |
CODE_ACTION_NOT_AUTHORIZED
Action not authorized for user |
static int |
CODE_AUTHENTICATION_FAILURE
Authentication failure |
static int |
CODE_AUTHENTICATION_INSUFFICIENT
Authentication mechanism insufficient (e.g., too weak, sequence exhausted, etc.) |
static int |
CODE_AUTHENTICATION_REQUIRED
Authentication required |
static int |
CODE_AUTHENTICATION_REQUIRES_ENCRYPTION
Authentication mechanism requires encryption |
static int |
CODE_GENERAL_SYNTAX_ERROR
General syntax error (e.g., poorly-formed XML) |
static int |
CODE_PARAMETER_ERROR
Syntax error in parameters (e.g., non-valid XML) |
static int |
CODE_PARAMETER_INVALID
Parameter invalid |
static int |
CODE_PARAMETER_NOT_IMPLEMENTED
Parameter not implemented |
static int |
CODE_REQUESTED_ACTION_ABORTED
Requested action aborted (e.g., local error in processing) |
static int |
CODE_REQUESTED_ACTION_NOT_TAKEN
Requested action not taken (e.g., lock already in use) |
static int |
CODE_REQUESTED_ACTION_NOT_TAKEN2
requested action not taken (e.g., no requested profiles are acceptable) |
static int |
CODE_SERVICE_NOT_AVAILABLE
Service not available |
static int |
CODE_SUCCESS
Success |
static int |
CODE_TEMPORARY_AUTHENTICATION_FAILURE
Temporary authentication failure |
static int |
CODE_TRANSACTION_FAILED
Transaction failed (e.g. policy violation). |
Constructor Summary | |
BEEPError(int code)
Constructor BEEPError |
|
BEEPError(int code,
java.lang.String diagnostic)
Constructor BEEPError |
|
BEEPError(int code,
java.lang.String diagnostic,
java.lang.String xmlLang)
Constructor BEEPError |
Method Summary | |
protected static BEEPError |
convertMessageERRToException(Message message)
Method convertMessageERRToException |
java.lang.String |
createErrorMessage()
Method createErrorMessage |
static java.lang.String |
createErrorMessage(int code,
java.lang.String diagnostic)
Creates a String for an error element that can be sent
in a BEEP ERR message. |
static java.lang.String |
createErrorMessage(int code,
java.lang.String diagnostic,
java.lang.String xmlLang)
Creates a String for an error element that can be sent
in a BEEP ERR message. |
int |
getCode()
Method getCode |
java.lang.String |
getDiagnostic()
Method getDiagnostic |
java.lang.String |
getXMLLang()
Method getXMLLang |
Methods inherited from class org.beepcore.beep.core.BEEPException |
getCause, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CODE_SUCCESS
public static final int CODE_SERVICE_NOT_AVAILABLE
public static final int CODE_REQUESTED_ACTION_NOT_TAKEN
public static final int CODE_REQUESTED_ACTION_ABORTED
public static final int CODE_TEMPORARY_AUTHENTICATION_FAILURE
public static final int CODE_GENERAL_SYNTAX_ERROR
public static final int CODE_PARAMETER_ERROR
public static final int CODE_PARAMETER_NOT_IMPLEMENTED
public static final int CODE_AUTHENTICATION_REQUIRED
public static final int CODE_AUTHENTICATION_INSUFFICIENT
public static final int CODE_AUTHENTICATION_FAILURE
public static final int CODE_ACTION_NOT_AUTHORIZED
public static final int CODE_AUTHENTICATION_REQUIRES_ENCRYPTION
public static final int CODE_REQUESTED_ACTION_NOT_TAKEN2
public static final int CODE_PARAMETER_INVALID
public static final int CODE_TRANSACTION_FAILED
Constructor Detail |
public BEEPError(int code, java.lang.String diagnostic, java.lang.String xmlLang)
code
- diagnostic
- xmlLang
- public BEEPError(int code, java.lang.String diagnostic)
code
- diagnostic
- public BEEPError(int code)
code
- Method Detail |
public int getCode()
public java.lang.String getXMLLang()
public java.lang.String getDiagnostic()
public java.lang.String createErrorMessage()
public static java.lang.String createErrorMessage(int code, java.lang.String diagnostic)
String
for an error element that can be sent
in a BEEP ERR message.
code
- Error code.diagnostic
- Error diagnostic.public static java.lang.String createErrorMessage(int code, java.lang.String diagnostic, java.lang.String xmlLang)
String
for an error element that can be sent
in a BEEP ERR message.
code
- Error code.diagnostic
- Error diagnostic.xmlLang
- Language of the diagnostic message.protected static BEEPError convertMessageERRToException(Message message) throws BEEPException
message
-
BEEPError
for the specified BEEP ERR message
BEEPException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |