public class WrappedRuntimeException extends RuntimeException
Constructor and Description |
---|
WrappedRuntimeException(Exception except)
Constructs a new runtime exception based on a checked exception.
|
WrappedRuntimeException(String message,
Exception except)
Constructs a new runtime exception based on a checked exception.
|
Modifier and Type | Method and Description |
---|---|
Exception |
getException()
Returns the exception wrapped by this runtime exception.
|
void |
printStackTrace() |
void |
printStackTrace(PrintStream stream) |
void |
printStackTrace(PrintWriter writer) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
public WrappedRuntimeException(String message, Exception except)
message
- The error messageexcept
- The checked exceptionpublic WrappedRuntimeException(Exception except)
except
- The checked exceptionpublic Exception getException()
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream stream)
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter writer)
printStackTrace
in class Throwable
Copyright © 2017. All rights reserved.