public class RuntimeExceptionWrapper extends RuntimeException implements ExceptionWrapper
Constructor and Description |
---|
RuntimeExceptionWrapper(Throwable e) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getDetail()
Deprecated.
replaced by
Throwable.getCause() . |
static RuntimeException |
wrapIfNeeded(Throwable e)
Wraps the given exception if it is not a
RuntimeException . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCause
public RuntimeExceptionWrapper(Throwable e)
public static RuntimeException wrapIfNeeded(Throwable e)
RuntimeException
.e
- any exception.e
if it is a RuntimeException
, otherwise a
RuntimeExceptionWrapper
for e
.public Throwable getDetail()
Throwable.getCause()
.ExceptionWrapper
getDetail
in interface ExceptionWrapper
Copyright (c) 2004, 2014 Oracle and/or its affiliates. All rights reserved.