public class UnstoppableExitException
extends java.lang.RuntimeException
This class is an unchecked exception because the generated code always
emits catch blocks regardless of whether the body of the try
block can generate these exceptions or not. The Java compiler fails in
this condition (we have too much exception processing). The other solution
to this is to exhaustively analyze all try
bodies to
determine if any catch
blocks must be removed. This has no
runtime benefit and is such a huge/complex effort that it is not
warrented. Instead we use unchecked exceptions.
Constructor and Description |
---|
UnstoppableExitException(java.lang.String message)
Constructor which accepts an error message.
|
UnstoppableExitException(java.lang.String message,
java.lang.Throwable rootCause)
Constructor which accepts an error message and a root cause.
|
UnstoppableExitException(java.lang.Throwable rootCause)
Constructor which accepts and wrappers a root cause.
|
public UnstoppableExitException(java.lang.String message)
message
- Error message.public UnstoppableExitException(java.lang.String message, java.lang.Throwable rootCause)
message
- Error message.rootCause
- Exception which has been caught in the course of processing.public UnstoppableExitException(java.lang.Throwable rootCause)
rootCause
- Exception which has been caught in the course of processing.