public class TLcdNoBoundsException extends Exception
TLcdNoBoundsException
is an Exception
that
is thrown when it is impossible to compute valid bounds. This may happen
when the geometry is empty, or when the geometry has no valid coordinates
in the coordinate space that is considered, for instance.Constructor and Description |
---|
TLcdNoBoundsException() |
TLcdNoBoundsException(String aMessage) |
TLcdNoBoundsException(String aMessage,
Throwable aCause) |
Modifier and Type | Method and Description |
---|---|
static TLcdNoBoundsException |
getSharedInstance()
Utility method that returns a shared no bounds exception.
|
static void |
setStackTraceOn(boolean aStackTraceOn)
When set to true this ensures that the correct stack trace is built for the shared instance.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TLcdNoBoundsException()
public TLcdNoBoundsException(String aMessage)
public static TLcdNoBoundsException getSharedInstance()
Utility method that returns a shared no bounds exception. This method exists solely for performance reasons: classes that throw many no bounds exceptions should use the exception generated by this method. The stack trace of the exception will not contain the actual location the exception is thrown.
If a correct stack trace is required set the stackTraceOn property to true. This method then creates a new no bounds exception for every call to this method. This can lead to a severe performance penalty when many exceptions are thrown so use it only for debugging.
setStackTraceOn(boolean)
public static void setStackTraceOn(boolean aStackTraceOn)
aStackTraceOn
- whether or not the correct stack trace should be constructed for the shared instance.getSharedInstance()