Class 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 Detail

      • AttivioIOException

        public AttivioIOException​(AttivioThrowable e)
        Constructor, copies the error code, cause, and original message from e.
      • 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

      • 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 interface AttivioThrowable
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • getOriginalMessage

        public java.lang.String getOriginalMessage()
        Get the original message without ErrorCode.
        Specified by:
        getOriginalMessage in interface AttivioThrowable
      • 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 interface AttivioThrowable
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object