|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.marketcetera.util.ws.wrappers.RemoteException
public class RemoteException
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.
| Constructor Summary | |
|---|---|
RemoteException()
Creates a new exception. |
|
RemoteException(Throwable t)
Creates a new exception that wraps the given throwable. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteException(Throwable t)
t - The throwable, which may be null.public RemoteException()
| Method Detail |
|---|
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 ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundExceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||