com.uwyn.rife.tools.exceptions
Class LightweightError
java.lang.Object
java.lang.Throwable
java.lang.Error
com.uwyn.rife.tools.exceptions.LightweightError
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AnswerException, CallException, ChildTriggeredException, DeferException, ExitTriggeredException, ForwardException, PauseException, RedirectException, StepBackException
public class LightweightError
- extends Error
An error that is intended to be as lightweight as possible.
Typically, this is used for ControlFlowRuntimeException exceptions so
that as little overhead as possible is imposed when these exceptions are
thrown. This is achieved by enforcing the stack traces to be empty, causing
them to not be captured.
- Since:
- 1.6
- Version:
- $Revision: 3844 $
- Author:
- Geert Bevin (gbevin[remove] at uwyn dot com)
- See Also:
- Serialized Form
LightweightError
public LightweightError()
LightweightError
public LightweightError(String message)
LightweightError
public LightweightError(String message,
Throwable cause)
LightweightError
public LightweightError(Throwable cause)
setUseFastExceptions
public static void setUseFastExceptions(boolean flag)
getUseFastExceptions
public static boolean getUseFastExceptions()
fillInStackTrace
public Throwable fillInStackTrace()
- Overrides:
fillInStackTrace in class Throwable
getStackTrace
public StackTraceElement[] getStackTrace()
- Overrides:
getStackTrace in class Throwable
Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.