ThrowableWrapper

class ThrowableWrapper extends Throwable

A wrapper around any Throwable so that it can be sent over RMI without needing the class to be defined in the receiving JVM. The stack trace will print as if it were the original throwable.

Author:Joshua Kaplan

Constructors

ThrowableWrapper

ThrowableWrapper(Throwable innerThrowable)

Creates a wrapper around innerThrowable so that when the stack trace is printed it is the same to the developer, but can be sent over RMI without the throwable being defined in the other JVM.

Parameters:
  • innerThrowable

Methods

toString

public String toString()