public class RemoteProperties extends Object implements Serializable
RemoteException. That information is encapsulated in a container,
instead of being marshalled/serialized as individual properties of
RemoteException, so that the exception may perform
post-processing after all component properties below are set.
The stack trace capture is a string array, containing the individual lines of the receiver's throwable stack trace printing: the first string is usually the exception class and message, and the remaining strings represent individual frames in the unravelled stack.
Equality and hash code generation ignore the receiver's throwable, its wrapper, and its class name.
| Constructor and Description |
|---|
RemoteProperties()
Creates a new container.
|
RemoteProperties(Throwable throwable)
Creates a new container for a
RemoteException that
wraps the given throwable. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getServerMessage()
Returns the receiver's server-localized message.
|
String |
getServerName()
Returns the receiver's server class name.
|
String |
getServerString()
Returns the receiver's server string representation.
|
Throwable |
getThrowable()
Returns a best-effort reconstruction of the receiver's
throwable, as described in
RemoteException. |
String[] |
getTraceCapture()
Returns the receiver's stack trace capture.
|
SerWrapper<Throwable> |
getWrapper()
Returns the receiver's throwable (wrapper).
|
int |
hashCode() |
void |
setServerMessage(String serverMessage)
Sets the receiver's server-localized message to the given one.
|
void |
setServerName(String serverName)
Sets the receiver's server class name to the given one.
|
void |
setServerString(String serverString)
Sets the receiver's server string representation to the given
one.
|
void |
setTraceCapture(String[] traceCapture)
Set the receiver's stack trace capture to the given one.
|
void |
setWrapper(SerWrapper<Throwable> wrapper)
Set the receiver's throwable (wrapper) to the given one.
|
public RemoteProperties(Throwable throwable)
RemoteException that
wraps the given throwable.throwable - The throwable, which may be null.public RemoteProperties()
public void setWrapper(SerWrapper<Throwable> wrapper)
wrapper - The throwable (wrapper), which may be null.public SerWrapper<Throwable> getWrapper()
public void setTraceCapture(String[] traceCapture)
traceCapture - The capture, which may be null.public String[] getTraceCapture()
public void setServerMessage(String serverMessage)
serverMessage - The message, which may be null.public String getServerMessage()
public void setServerString(String serverString)
serverString - The string, which may be null.public String getServerString()
public void setServerName(String serverName)
serverName - The name, which may be null.public String getServerName()
public Throwable getThrowable()
RemoteException.Copyright © 2015. All Rights Reserved.