Class AttivioRemoteException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class AttivioRemoteException
    extends java.lang.Exception
    An unhandled exception from a remote system.

    The stack trace and detail message are inherited from the passed in Throwable. The original Throwable's cause is converted to an AttivioException and stored as the AttivioRemoteException's cause.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AttivioRemoteException​(java.lang.String sourceClass, java.lang.String message, java.lang.Throwable cause, java.lang.StackTraceElement[] stackTrace)
      Constructor, from the details of the remote exception.
      AttivioRemoteException​(java.lang.Throwable e)
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      java.lang.String getMessage()
      java.lang.String getSourceClass()
      Get the name of the class that was the source for this RemoteThrowable.
      int hashCode()
      static java.lang.Exception toRemoteException​(java.lang.Throwable cause)
      Convert cause to 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
    • Constructor Detail

      • AttivioRemoteException

        public AttivioRemoteException​(java.lang.Throwable e)
        Constructor.
        Parameters:
        e - the remote exception
      • AttivioRemoteException

        public AttivioRemoteException​(java.lang.String sourceClass,
                                      java.lang.String message,
                                      java.lang.Throwable cause,
                                      java.lang.StackTraceElement[] stackTrace)
        Constructor, from the details of the remote exception.
        Parameters:
        sourceClass -
        message -
        cause -
        stackTrace -
    • Method Detail

      • getSourceClass

        public java.lang.String getSourceClass()
        Get the name of the class that was the source for this RemoteThrowable.
      • toRemoteException

        public static java.lang.Exception toRemoteException​(java.lang.Throwable cause)
        Convert cause to a remote exception.

        This converts any exception to a representation that a client can receive.

      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getMessage

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