com.sun.xml.ws.fault
Class ExceptionBean

java.lang.Object
  extended by com.sun.xml.ws.fault.ExceptionBean

final class ExceptionBean
extends Object

JAXB-bound bean that captures the exception and its call stack.

This is used to capture the stack trace of the server side error and send that over to the client.


Nested Class Summary
(package private) static class ExceptionBean.StackFrame
          Captures one stack frame.
 
Field Summary
 ExceptionBean cause
           
 String className
           
(package private) static String LOCAL_NAME
           
 String message
           
 String note
           
(package private) static String NS
          Namespace URI.
 List<ExceptionBean.StackFrame> stackTrace
           
 
Constructor Summary
ExceptionBean()
           
 
Method Summary
static boolean isStackTraceXml(Element n)
          Checks if the given element is the XML representation of ExceptionBean.
static void marshal(Throwable t, Node parent)
          Converts the given Throwable into an XML representation and put that as a DOM tree under the given node.
static ServerSideException unmarshal(Node xml)
          Does the reverse operation of marshal(Throwable, Node).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

public String className

message

public String message

stackTrace

public List<ExceptionBean.StackFrame> stackTrace

cause

public ExceptionBean cause

note

public String note

NS

static final String NS
Namespace URI.

See Also:
Constant Field Values

LOCAL_NAME

static final String LOCAL_NAME
See Also:
Constant Field Values
Constructor Detail

ExceptionBean

ExceptionBean()
Method Detail

marshal

public static void marshal(Throwable t,
                           Node parent)
                    throws JAXBException
Converts the given Throwable into an XML representation and put that as a DOM tree under the given node.

Throws:
JAXBException

unmarshal

public static ServerSideException unmarshal(Node xml)
                                     throws JAXBException
Does the reverse operation of marshal(Throwable, Node). Constructs an Exception object from the XML.

Throws:
JAXBException

isStackTraceXml

public static boolean isStackTraceXml(Element n)
Checks if the given element is the XML representation of ExceptionBean.