1 package org.codehaus.xfire.fault; 2 3 import org.codehaus.xfire.MessageContext; 4 5 /*** 6 * A fault handler takes an exception and generates 7 * a fault message which is written to the response message. 8 * 9 * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a> 10 */ 11 public interface FaultHandler 12 { 13 String ROLE = FaultHandler.class.getName(); 14 15 /*** 16 * Take an exception and generate a fault message 17 * which is written to the response OutputStream. 18 * 19 * TODO: Get the correct outputstream if we are using WS-Addressing 20 * 21 * @param e 22 * @param context 23 */ 24 public void handleFault( Exception e, MessageContext context ); 25 }