org.globus.wsrf.utils
Class FaultHelper

java.lang.Object
  |
  +--org.globus.wsrf.utils.FaultHelper

public class FaultHelper
extends Object


Field Summary
static URI STACK_TRACE
          Custom stack trace error code URI
 
Constructor Summary
FaultHelper()
           
 
Method Summary
static void addFaultCause(BaseFaultType fault, Throwable exception)
           
static void fillInStackTrace(BaseFaultType fault, Throwable exception)
           
static String[] getDescription(BaseFaultType fault)
           
static String getMessage(Throwable exception)
           
static void setDescription(BaseFaultType fault, String description)
           
static void setDescription(BaseFaultType fault, String[] description)
           
static BaseFaultType toBaseFault(Throwable exception)
          Converts the given exception into a BaseFaultType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STACK_TRACE

public static final URI STACK_TRACE
Custom stack trace error code URI
Constructor Detail

FaultHelper

public FaultHelper()
Method Detail

setDescription

public static void setDescription(BaseFaultType fault,
                                  String description)

setDescription

public static void setDescription(BaseFaultType fault,
                                  String[] description)

getDescription

public static String[] getDescription(BaseFaultType fault)

addFaultCause

public static void addFaultCause(BaseFaultType fault,
                                 Throwable exception)

toBaseFault

public static BaseFaultType toBaseFault(Throwable exception)
Converts the given exception into a BaseFaultType. It embeds the stack trace of the exception as a custom ErrorCode and the exception message as a Description field.

fillInStackTrace

public static void fillInStackTrace(BaseFaultType fault,
                                    Throwable exception)

getMessage

public static String getMessage(Throwable exception)


Copyright © 1999-2003 University of Chicago and The University of Southern California. All rights reserved.