Package com.attivio.sdk
Class AttivioRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.attivio.sdk.AttivioRuntimeException
-
- All Implemented Interfaces:
AttivioThrowable,java.io.Serializable
@WebFault public class AttivioRuntimeException extends java.lang.RuntimeException implements AttivioThrowable
Base class for runtime exceptions in Attivio AIE.Contains the underlying
ErrorCodethat may explain the cause of the exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttivioRuntimeException(AttivioThrowable e)AttivioRuntimeException(ErrorCode code, java.lang.String message, java.lang.Object... args)AttivioRuntimeException(ErrorCode code, java.lang.Throwable cause, java.lang.String message, java.lang.Object... args)AttivioRuntimeException(java.lang.String context, ErrorCode code, java.lang.Throwable cause, java.lang.String message, java.lang.Object... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)AttivioExceptiongetAttivioException()Convert this exception into anAttivioException.ErrorCodegetErrorCode()Get theErrorCodefor this exception.java.lang.StringgetErrorContext()Get the context for this error.java.lang.StringgetMessage()java.lang.StringgetOriginalMessage()Get the original message without ErrorCode.inthashCode()AttivioExceptiontoRemoteException()Convert this exception to be a remote exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.attivio.sdk.AttivioThrowable
getCause, getStackTrace
-
-
-
-
Constructor Detail
-
AttivioRuntimeException
public AttivioRuntimeException(AttivioThrowable e)
-
AttivioRuntimeException
public AttivioRuntimeException(ErrorCode code, java.lang.String message, java.lang.Object... args)
-
AttivioRuntimeException
public AttivioRuntimeException(ErrorCode code, java.lang.Throwable cause, java.lang.String message, java.lang.Object... args)
-
AttivioRuntimeException
public AttivioRuntimeException(java.lang.String context, ErrorCode code, java.lang.Throwable cause, java.lang.String message, java.lang.Object... args)
-
-
Method Detail
-
getErrorCode
public ErrorCode getErrorCode()
Get theErrorCodefor this exception.- Specified by:
getErrorCodein interfaceAttivioThrowable
-
getErrorContext
public java.lang.String getErrorContext()
Get the context for this error.This context is specific to the
error codeand will typically consist of things such as field names, document ids, etc.- Specified by:
getErrorContextin interfaceAttivioThrowable
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
getOriginalMessage
public java.lang.String getOriginalMessage()
Get the original message without ErrorCode.- Specified by:
getOriginalMessagein interfaceAttivioThrowable
-
getAttivioException
public AttivioException getAttivioException()
Convert this exception into anAttivioException.
-
toRemoteException
public AttivioException toRemoteException()
Convert this exception to be a remote exception.This converts this exception to a representation that a client can receive.
- Specified by:
toRemoteExceptionin interfaceAttivioThrowable
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-