Package com.oracle.coherence.common.base
Class Exceptions
java.lang.Object
com.oracle.coherence.common.base.Exceptions
Class for providing exception support.
- Since:
- 20.06
- Author:
- cp 2000.08.02
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeExceptionConvert the passed exception to a RuntimeException if necessary.static RuntimeExceptionConvert the passed exception to a RuntimeException if necessary.static ThrowableUnwind the wrapper (runtime) exception to extract the originalstatic voidRe-throw the specified exception if it is a fatal unrecoverable exception.
-
Constructor Details
-
Exceptions
public Exceptions()
-
-
Method Details
-
ensureRuntimeException
Convert the passed exception to a RuntimeException if necessary.- Parameters:
e- any Throwable object- Returns:
- a RuntimeException
-
ensureRuntimeException
Convert the passed exception to a RuntimeException if necessary.- Parameters:
e- any Throwable objects- an additional description- Returns:
- a RuntimeException
-
getOriginalException
Unwind the wrapper (runtime) exception to extract the original- Parameters:
e- Runtime exception (wrapper)- Returns:
- an original wrapped exception
-
throwIfFatal
Re-throw the specified exception if it is a fatal unrecoverable exception.- Parameters:
t- the exception to check
-