org.jboss.soa.esb.message
Interface Fault


public interface Fault

Faults may be returned from a service in response to receiving and acting upon messages. A fault consists of a unique code (MANDATORY) and a reason string (OPTIONAL).


Method Summary
 java.net.URI getCode()
           
 java.lang.String getReason()
           
 void setCode(java.net.URI code)
          Set the unique code for this fault.
 void setReason(java.lang.String reason)
          Set the optional reason for this fault.
 

Method Detail

getCode

java.net.URI getCode()
Returns:
the unique code representing this fault.

setCode

void setCode(java.net.URI code)
Set the unique code for this fault.

Parameters:
code - the code.

getReason

java.lang.String getReason()
Returns:
a String representing the reason for the fault. Typically used for logging purposes.

setReason

void setReason(java.lang.String reason)
Set the optional reason for this fault.

Parameters:
reason - the reason for the fault.