Class 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 ErrorCode that may explain the cause of the exception.

    See Also:
    Serialized Form
    • 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

      • 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