org.japano.pagenode.jstl.core
Class Catch

java.lang.Object
  extended by org.japano.PageNode
      extended by org.japano.pagenode.jstl.core.Catch

public class Catch
extends PageNode

Catches any Throwable that occurs in its body and optionally exposes it.

Version:
$Id: Catch.java,v 1.2 2005/09/27 21:30:51 fforw Exp $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )

Nested Class Summary
 
Nested classes/interfaces inherited from class org.japano.PageNode
PageNode.Output
 
Field Summary
 java.lang.String var
           
 
Fields inherited from class org.japano.PageNode
children, context, EMPTY, nodeId, parent
 
Constructor Summary
Catch()
           
 
Method Summary
 void generate(Buffer out)
          Catches any throwable and sets the configured variable to throwable caught.
 void setVar(java.lang.String var)
          The name of the scoped variable in which a caught exception is exported.
 
Methods inherited from class org.japano.PageNode
findChildren, findParent, findRootNode, generateChildren, getChildren, getContext, getNodeId, getParent, init, recInit, release, setChildren, setContext, setNodeId, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

var

public java.lang.String var
Constructor Detail

Catch

public Catch()
Method Detail

setVar

public void setVar(java.lang.String var)
The name of the scoped variable in which a caught exception is exported.


generate

public void generate(Buffer out)
Catches any throwable and sets the configured variable to throwable caught.

Overrides:
generate in class PageNode