final class ExceptionBean extends Object
This is used to capture the stack trace of the server side error and send that over to the client.
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
ExceptionBean.StackFrame
Captures one stack frame.
|
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
ExceptionBean() |
| Modifier and Type | Method and Description |
|---|---|
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). |
public String className
public String message
public List<ExceptionBean.StackFrame> stackTrace
public ExceptionBean cause
public String note
static final String NS
static final String LOCAL_NAME
public static void marshal(Throwable t, Node parent) throws JAXBException
Throwable into an XML representation
and put that as a DOM tree under the given node.JAXBExceptionpublic static ServerSideException unmarshal(Node xml) throws JAXBException
marshal(Throwable, Node). Constructs an
Exception object from the XML.JAXBExceptionpublic static boolean isStackTraceXml(Element n)
ExceptionBean.Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.