Class TraceInformation
java.lang.Object
java.lang.Throwable
org.jboss.marshalling.TraceInformation
- All Implemented Interfaces:
Serializable
A facility available to marshalling implementations which allows for detailed stack traces which trace
the position in the object graph where a marshalling or unmarshalling problem has occurred.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classInformation about a class which was being (un-)marshalled at the time an exception occurred.static final classInformation about a field which was being marshalled at the time an exception occurred.static final classInformation about an incomplete object being unmarshalled.static final classInformation about an index in an array or collection.static enumThe type of index for a multi-valued collection or map.static classInformation about the circumstances surrounding (un)marshalling.static final classInformation specific to a method execution.static final classInformation about an object which was being (un-)marshalled at the time an exception occurred.static final classUser information. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) TraceInformation.Infoprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddFieldInformation(Throwable t, String fieldName) Add information about a field which was being marshalled.static voidaddIncompleteObjectInformation(Throwable t, Class<?> targetClass) Add information about an incomplete object which was being unmarshalled.static voidaddIncompleteObjectInformation(Throwable t, String targetClassName) Add information about an incomplete object which was being unmarshalled.static voidaddIndexInformation(Throwable t, int index, int size, TraceInformation.IndexType kind) Add information about an index into a collection which was being (un-)marshalled.static voidaddObjectInformation(Throwable t, Object targetObject) Add information about an object which was being (un-)marshalled.static voidaddUserInformation(Throwable t, Serializable data) Add user information about problem with marshalling or unmarshalling.private static StringgetNiceClassName(Class<?> clazz) private static TraceInformationvoidsetStackTrace(StackTraceElement[] stackTrace) toString()Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
info
-
-
Constructor Details
-
TraceInformation
TraceInformation()
-
-
Method Details
-
fillInStackTrace
- Overrides:
fillInStackTracein classThrowable
-
toString
-
setStackTrace
- Overrides:
setStackTracein classThrowable
-
getOrAddTraceInformation
-
getNiceClassName
-
addUserInformation
Add user information about problem with marshalling or unmarshalling.- Parameters:
t- the throwable to updatedata- the user data
-
addFieldInformation
-
addObjectInformation
-
addIncompleteObjectInformation
-
addIncompleteObjectInformation
-
addIndexInformation
public static void addIndexInformation(Throwable t, int index, int size, TraceInformation.IndexType kind) Add information about an index into a collection which was being (un-)marshalled.- Parameters:
t- the throwable to updateindex- the index of the element in questionsize- the size of the collection in questionkind- the type of element being processed
-