@WebFault public class AttivioException extends Exception implements AttivioThrowable
Contains the underlying ErrorCode that may explain the cause of the exception.
| Modifier | Constructor and Description |
|---|---|
protected |
AttivioException() |
|
AttivioException(ErrorCode code,
String message,
Object... params)
Constructs an AttivioException with the error code.
|
|
AttivioException(ErrorCode code,
Throwable cause,
String message,
Object... params)
Constructs an AttivioException with the error code.
|
|
AttivioException(String context,
ErrorCode code,
Throwable cause,
String message,
Object... params)
Constructs an AttivioException with the error code.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
static String |
formatLogMessage(String msg,
Object... params)
Safely formats a log message handling null input as well as returning a warning message if message formatting failed.
|
ErrorCode |
getErrorCode()
Get the
ErrorCode for this exception. |
String |
getErrorContext()
Get the context for this error.
|
String |
getMessage() |
String |
getOriginalMessage()
Get the original message without ErrorCode.
|
int |
hashCode() |
AttivioException |
toRemoteException()
Convert this exception to be a remote exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCause, getStackTraceprotected AttivioException()
public AttivioException(ErrorCode code, String message, Object... params)
code - the error codemessage - the error messageparams - any error message parameterspublic AttivioException(ErrorCode code, Throwable cause, String message, Object... params)
code - the error codecause - the error causemessage - the error messageparams - any error message parameterspublic AttivioException(String context, ErrorCode code, Throwable cause, String message, Object... params)
code - the error codecontext - the context for this error (field name, docid, etc)cause - the error causemessage - the error messageparams - any error message parameterspublic ErrorCode getErrorCode()
ErrorCode for this exception.getErrorCode in interface AttivioThrowablepublic String getErrorContext()
This context is specific to the error code and will typically consist of things such as field names,
document ids, etc.
getErrorContext in interface AttivioThrowablepublic String getOriginalMessage()
getOriginalMessage in interface AttivioThrowablepublic String getMessage()
getMessage in class Throwablepublic AttivioException toRemoteException()
This converts this exception to a representation that a client can receive.
toRemoteException in interface AttivioThrowableCopyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.