com.google.gwt.junit.client.impl
Class ExceptionWrapper

java.lang.Object
  extended by com.google.gwt.junit.client.impl.ExceptionWrapper
All Implemented Interfaces:
java.io.Serializable

public final class ExceptionWrapper
extends java.lang.Object
implements java.io.Serializable

A helper class for converting a generic Throwable into an Object that can be serialized for RPC.

See Also:
Serialized Form

Field Summary
 ExceptionWrapper cause
          Corresponds to Throwable.getCause().
 java.lang.String message
          Corresponds to Throwable.getMessage().
 StackTraceWrapper[] stackTrace
          Corresponds to Throwable.getStackTrace().
 java.lang.String typeName
          The run-time type of the exception.
 
Constructor Summary
ExceptionWrapper()
          Creates an empty ExceptionWrapper.
ExceptionWrapper(java.lang.Throwable e)
          Creates an ExceptionWrapper around an existing Throwable.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cause

public ExceptionWrapper cause
Corresponds to Throwable.getCause().


message

public java.lang.String message
Corresponds to Throwable.getMessage().


stackTrace

public StackTraceWrapper[] stackTrace
Corresponds to Throwable.getStackTrace().


typeName

public java.lang.String typeName
The run-time type of the exception.

Constructor Detail

ExceptionWrapper

public ExceptionWrapper()
Creates an empty ExceptionWrapper.


ExceptionWrapper

public ExceptionWrapper(java.lang.Throwable e)
Creates an ExceptionWrapper around an existing Throwable.

Parameters:
e - the Throwable to wrap.