public class IlvRuntimeException extends RuntimeException
IlvRuntimeException is a simple RuntimeException extension
that allows a checked exception to be wrapped and rethrown as an unchecked exception.| Constructor and Description |
|---|
IlvRuntimeException(String message,
Throwable exception)
Creates a new
IlvRuntimeException that wraps the specified
exception. |
IlvRuntimeException(String message,
Throwable exception,
boolean differentThread)
Creates a new
IlvRuntimeException that wraps the specified
exception. |
IlvRuntimeException(Throwable exception)
Creates a new
IlvRuntimeException that wraps the specified
exception. |
IlvRuntimeException(Throwable exception,
boolean differentThread)
Creates a new
IlvRuntimeException that wraps the specified
exception. |
| Modifier and Type | Method and Description |
|---|---|
String |
getLocalizedMessage() |
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IlvRuntimeException(Throwable exception)
IlvRuntimeException that wraps the specified
exception.exception - The exception to be wrapped.public IlvRuntimeException(String message, Throwable exception)
IlvRuntimeException that wraps the specified
exception.message - A description of the situation in which the exception
occurred.exception - The exception to be wrapped.public IlvRuntimeException(Throwable exception, boolean differentThread)
IlvRuntimeException that wraps the specified
exception. If differentThread is true and that
exception is an InvocationTargetException, it
must wrap an exception from a different thread.exception - The exception to be wrapped.differentThread - If true and the exception is an
InvocationTargetException, the stack
traces will be concatenated, instead of using the
cause mechanism.public IlvRuntimeException(String message, Throwable exception, boolean differentThread)
IlvRuntimeException that wraps the specified
exception. If differentThread is true and that
exception is an InvocationTargetException, it
must wrap an exception from a different thread.message - A description of the situation in which the exception
occurred.exception - The exception to be wrapped.differentThread - If true and the exception is an
InvocationTargetException, the stack
traces will be concatenated, instead of using the
cause mechanism.public String getMessage()
getMessage in class Throwablepublic String getLocalizedMessage()
getLocalizedMessage in class Throwable© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.