Class RemoteException

  • All Implemented Interfaces:
    Externalizable, Serializable

    public class RemoteException
    extends Exception
    implements Externalizable
    A remote exception. It wraps any Throwable in a manner that enables its marshalling using JAXB in the context of web service faults, or for use by Java serialization in other contexts; this is done by serializing the throwable and marshalling it using a SerWrapper. On the server side, this class sets the wrapped throwable as its cause. This also happens on the client side, provided the client runs in a JVM which is able to deserialize the throwable (because it has the right resources and classes available in its classpath). Otherwise, the cause is an instance of RemoteProxyException, which encapsulates the throwable's most important information, as conveyed via a RemoteProperties instance.

    Equality and hash code generation rely only on a temporary RemoteProperties instance created for comparison purposes from the receiver's cause; notably, the class of the cause is ignored.

    Since:
    1.0.0
    Version:
    $Id: RemoteException.java 17411 2017-04-28 14:50:38Z colin $
    Author:
    tlerios@marketcetera.com
    See Also:
    Serialized Form
    • Constructor Detail

      • RemoteException

        public RemoteException​(Throwable t)
        Creates a new exception that wraps the given throwable.
        Parameters:
        t - The throwable, which may be null.
      • RemoteException

        public RemoteException()
        Creates a new exception. This empty constructor is intended for use by JAXB and Java serialization.