scriptella.core
Class ExceptionInterceptor

java.lang.Object
  extended by scriptella.core.ElementInterceptor
      extended by scriptella.core.ExceptionInterceptor
All Implemented Interfaces:
ExecutableElement

public final class ExceptionInterceptor
extends ElementInterceptor

Intercepts exceptions thrown by wrapped executable elements. Additionally checks if ETL has been cancelled.

Version:
1.0
Author:
Fyodor Kupolov

Nested Class Summary
static class ExceptionInterceptor.ExecutionException
           
 
Constructor Summary
ExceptionInterceptor(ExecutableElement next, Location location)
           
 
Method Summary
 void execute(DynamicContext ctx)
          Executes the element.
static ExecutableElement prepare(ExecutableElement next, Location loc)
           
 
Methods inherited from class scriptella.core.ElementInterceptor
executeNext, getCtxDecorator, getNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionInterceptor

public ExceptionInterceptor(ExecutableElement next,
                            Location location)
Method Detail

execute

public void execute(DynamicContext ctx)
Description copied from interface: ExecutableElement
Executes the element.

Note: the context may be decorated by DynamicContextDecorator.

Parameters:
ctx - context to use.

prepare

public static ExecutableElement prepare(ExecutableElement next,
                                        Location loc)


Copyright © Copyright 2006-2009 The Scriptella Project Team.