if (e instanceof RPException) {
Debug.outNoStack("RPExceptions chained together - stack trace, followed by other RPException stack trace.");
Debug.outStackTrace();
Debug.printStackTrace(e);
throw new RuntimeException("cannot chain RPException instances together");
}