Logback API
Version 0.9.8

ch.qos.logback.core.joran.spi
Class ActionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ch.qos.logback.core.joran.spi.ActionException
All Implemented Interfaces:
Serializable

public class ActionException
extends Exception

By throwing an exception an action can signal the Interpreter to skip processing, all the nested elements nested within the element throwing the exception or skip all following sibling elements in the document.

Author:
Ceki Gulcu
See Also:
Serialized Form

Field Summary
static int SKIP_CHILDREN
          SKIP_CHILDREN signals the Interpreter to skip processing all the nested elements contained within the element causing this ActionException.
static int SKIP_SIBLINGS
          SKIP_SIBLINGS signals the Interpreter to skip processing all the children of this element as well as all the siblings of this elements, including any children they may have.
 
Constructor Summary
ActionException(int skipCode)
           
ActionException(int skipCode, Throwable rootCause)
           
 
Method Summary
 Throwable getCause()
           
 int getSkipCode()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SKIP_CHILDREN

public static final int SKIP_CHILDREN
SKIP_CHILDREN signals the Interpreter to skip processing all the nested elements contained within the element causing this ActionException.

See Also:
Constant Field Values

SKIP_SIBLINGS

public static final int SKIP_SIBLINGS
SKIP_SIBLINGS signals the Interpreter to skip processing all the children of this element as well as all the siblings of this elements, including any children they may have.

See Also:
Constant Field Values
Constructor Detail

ActionException

public ActionException(int skipCode)

ActionException

public ActionException(int skipCode,
                       Throwable rootCause)
Method Detail

getCause

public Throwable getCause()
Overrides:
getCause in class Throwable

getSkipCode

public int getSkipCode()

Logback API
Version 0.9.8

Copyright © 2005-2008 QOS.ch. All Rights Reserved.