public class ExceptionProxy
extends java.lang.Object
implements java.io.Externalizable
Modifier and Type | Field and Description |
---|---|
private java.lang.Throwable |
cause |
private ExceptionProxy |
causeProxy |
private java.lang.String |
className |
private java.lang.String |
message |
private java.lang.Throwable |
original |
private java.lang.Throwable |
serializationProcessException |
private static long |
serialVersionUID |
private java.lang.StackTraceElement[] |
trace |
Constructor and Description |
---|
ExceptionProxy() |
ExceptionProxy(java.lang.Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
createException()
Constructs an instance of the proxied exception based on the class name,
message, stack trace and if applicable, the cause.
|
static ExceptionProxy |
createForException(java.lang.Throwable throwable)
Static method to create an exception proxy for the passed in
Throwable class. |
ArquillianProxyException |
createProxyException(java.lang.String reason) |
java.lang.Throwable |
getCause()
Returns the cause of the exception represented by this proxy
|
boolean |
hasException()
Indicates whether this proxy wraps an exception
|
void |
readExternal(java.io.ObjectInput in)
Custom Serialization logic.
|
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out) |
private static final long serialVersionUID
private java.lang.String className
private java.lang.String message
private java.lang.StackTraceElement[] trace
private ExceptionProxy causeProxy
private java.lang.Throwable cause
private java.lang.Throwable original
private java.lang.Throwable serializationProcessException
public ExceptionProxy()
public ExceptionProxy(java.lang.Throwable throwable)
public boolean hasException()
public java.lang.Throwable createException()
Throwable
instancepublic ArquillianProxyException createProxyException(java.lang.String reason)
public static ExceptionProxy createForException(java.lang.Throwable throwable)
Throwable
class. If null is passed in, null is returned as the
exception proxythrowable
- Exception to proxypublic java.lang.Throwable getCause()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object