commonj.connector.runtime
Interface FaultSelector


public interface FaultSelector

Generates a fault identifier that can be matched with one of the faults associated with the specific outbound operation.

Since:
1.1

Method Summary
 String generateFaultName(FaultException exception)
          Generate fault identifier from the FaultException
 String generateFaultName(Object[] arguments)
          A selector method to support bindings not supporting CCI
 boolean isFault(Object[] faultData)
          Pass the returned data, whether it be an exception or response message, to determine if a fault has occurred.
 

Method Detail

generateFaultName

String generateFaultName(FaultException exception)
                         throws SelectorException
Generate fault identifier from the FaultException

Parameters:
exception - - Fault Exception
Returns:
String representing the Fault identifier
Throws:
SelectorException

generateFaultName

String generateFaultName(Object[] arguments)
                         throws SelectorException
A selector method to support bindings not supporting CCI

Parameters:
arguments - is the response, whether it be an exception or response message.
Returns:
String representing the Fault identifier
Throws:
SelectorException

isFault

boolean isFault(Object[] faultData)
Pass the returned data, whether it be an exception or response message, to determine if a fault has occurred.

Parameters:
faultData - is the returned data.
Returns:
true if faultData is a fault otherwise false.