com.uwyn.rife.tools.exceptions
Class LightweightError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by 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

Constructor Summary
LightweightError()
           
LightweightError(String message)
           
LightweightError(String message, Throwable cause)
           
LightweightError(Throwable cause)
           
 
Method Summary
 Throwable fillInStackTrace()
           
 StackTraceElement[] getStackTrace()
           
static boolean getUseFastExceptions()
           
static void setUseFastExceptions(boolean flag)
           
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LightweightError

public LightweightError()

LightweightError

public LightweightError(String message)

LightweightError

public LightweightError(String message,
                        Throwable cause)

LightweightError

public LightweightError(Throwable cause)
Method Detail

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.