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
ErrorCode
that 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 boolean
equals(java.lang.Object other)
AttivioException
getAttivioException()
Convert this exception into anAttivioException
.ErrorCode
getErrorCode()
Get theErrorCode
for this exception.java.lang.String
getErrorContext()
Get the context for this error.java.lang.String
getMessage()
java.lang.String
getOriginalMessage()
Get the original message without ErrorCode.int
hashCode()
AttivioException
toRemoteException()
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 theErrorCode
for this exception.- Specified by:
getErrorCode
in interfaceAttivioThrowable
-
getErrorContext
public java.lang.String getErrorContext()
Get the context for this error.This context is specific to the
error code
and will typically consist of things such as field names, document ids, etc.- Specified by:
getErrorContext
in interfaceAttivioThrowable
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getOriginalMessage
public java.lang.String getOriginalMessage()
Get the original message without ErrorCode.- Specified by:
getOriginalMessage
in 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:
toRemoteException
in interfaceAttivioThrowable
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-