com.intel.gpe.clients.api.workflow
Class ActionScope.Catch

java.lang.Object
  extended by com.intel.gpe.clients.api.workflow.ActionScope.Catch
All Implemented Interfaces:
Action, ActionScope.GenericCatch
Enclosing class:
ActionScope

public static class ActionScope.Catch
extends java.lang.Object
implements ActionScope.GenericCatch

Fault handler to catch faults with the (probably) specified QName. The fault name is the QName of the fault element retruned as the response during the service invocation. Another possibility to obtain a fault is to invoke directly a throw-clause (see Throw).

Author:
Alexander Lukichev

Constructor Summary
ActionScope.Catch(javax.xml.namespace.QName faultName, Action action)
          Create a fault handler.
 
Method Summary
 void emitCode(Scope scope, org.w3c.dom.Element target)
          Emit the piece of code corresponding to the current action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionScope.Catch

public ActionScope.Catch(javax.xml.namespace.QName faultName,
                         Action action)
Create a fault handler.

Parameters:
faultName - The name of the fault to catch. If null catch all faults.
action - The action to perform in the case of matching the thrown fault and the faultName
Method Detail

emitCode

public void emitCode(Scope scope,
                     org.w3c.dom.Element target)
              throws java.lang.Exception
Description copied from interface: Action
Emit the piece of code corresponding to the current action.

Specified by:
emitCode in interface Action
Parameters:
scope - The variable scope of the workflow
target - The XML DOM element to append the action code to
Throws:
java.lang.Exception - In a case of error


Copyright © 2008. All Rights Reserved.