Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.tripi.asp
Class ThrowExceptionNode  view ThrowExceptionNode download ThrowExceptionNode.java

java.lang.Object
  extended bycom.tripi.asp.DefaultNode
      extended bycom.tripi.asp.ThrowExceptionNode
All Implemented Interfaces:
Node

public class ThrowExceptionNode
extends DefaultNode

The ThrowExceptionNode handles nodes which automatically throw exceptions. This includes Exit nodes.

Version:
0.9

Field Summary
(package private)  AspException exception
          Exception to throw when this block is executed.
 
Constructor Summary
ThrowExceptionNode(AspException exception)
          Constructor, gives exception to throw.
 
Method Summary
 void dump()
          Dumps this VBScript element.
 java.lang.Object execute(AspContext context)
          Executes this node, throwing the exception we want to throw.
 
Methods inherited from class com.tripi.asp.DefaultNode
prepare
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exception

AspException exception
Exception to throw when this block is executed.

Constructor Detail

ThrowExceptionNode

public ThrowExceptionNode(AspException exception)
Constructor, gives exception to throw.

Method Detail

dump

public void dump()
          throws AspException
Dumps this VBScript element.

Specified by:
dump in interface Node
Overrides:
dump in class DefaultNode

execute

public java.lang.Object execute(AspContext context)
                         throws AspException
Executes this node, throwing the exception we want to throw.

Specified by:
execute in interface Node
Overrides:
execute in class DefaultNode