public class RemoteException extends Exception implements Externalizable
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.
| Constructor and Description |
|---|
RemoteException()
Creates a new exception.
|
RemoteException(Throwable t)
Creates a new exception that wraps the given throwable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
RemoteProperties |
getProperties()
Returns the receiver's properties.
|
int |
hashCode() |
void |
readExternal(ObjectInput in) |
void |
setProperties(RemoteProperties properties)
Set the receiver's properties to the given ones.
|
void |
writeExternal(ObjectOutput out) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RemoteException(Throwable t)
t - The throwable, which may be null.public RemoteException()
public void setProperties(RemoteProperties properties)
properties - The properties, which may be null.public RemoteProperties getProperties()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2015. All Rights Reserved.