Package com.attivio.sdk
Class AttivioIOException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.attivio.sdk.AttivioIOException
-
- All Implemented Interfaces:
AttivioThrowable,java.io.Serializable
public class AttivioIOException extends java.io.IOException implements AttivioThrowable
Base class for IO exceptions in Attivio AIE.Contains the underlying
ErrorCodethat may explain the cause of the exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttivioIOException(AttivioThrowable e)Constructor, copies the error code, cause, and original message frome.AttivioIOException(ErrorCode code, java.lang.String message)Constructor.AttivioIOException(ErrorCode code, java.lang.String message, java.lang.Object... args)Constructor.AttivioIOException(ErrorCode code, java.lang.Throwable cause, java.lang.String message)Constructor.AttivioIOException(ErrorCode code, java.lang.Throwable cause, java.lang.String message, java.lang.Object... args)Constructor.AttivioIOException(java.lang.String context, ErrorCode code, java.lang.Throwable cause, java.lang.String message)Constructor.AttivioIOException(java.lang.String context, ErrorCode code, java.lang.Throwable cause, java.lang.String message, java.lang.Object... args)Constructor.
-
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
-
AttivioIOException
public AttivioIOException(AttivioThrowable e)
Constructor, copies the error code, cause, and original message frome.
-
AttivioIOException
public AttivioIOException(ErrorCode code, java.lang.String message)
Constructor.
-
AttivioIOException
public AttivioIOException(ErrorCode code, java.lang.String message, java.lang.Object... args)
Constructor.
-
AttivioIOException
public AttivioIOException(ErrorCode code, java.lang.Throwable cause, java.lang.String message)
Constructor.
-
AttivioIOException
public AttivioIOException(ErrorCode code, java.lang.Throwable cause, java.lang.String message, java.lang.Object... args)
Constructor.
-
AttivioIOException
public AttivioIOException(java.lang.String context, ErrorCode code, java.lang.Throwable cause, java.lang.String message, java.lang.Object... args)Constructor.
-
AttivioIOException
public AttivioIOException(java.lang.String context, ErrorCode code, java.lang.Throwable cause, java.lang.String message)Constructor.
-
-
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
-
-