Package org.jboss.marshalling
Class TraceInformation
- java.lang.Object
-
- java.lang.Throwable
-
- org.jboss.marshalling.TraceInformation
-
- All Implemented Interfaces:
java.io.Serializable
public final class TraceInformation extends java.lang.ThrowableA 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTraceInformation.ClassInfoInformation about a class which was being (un-)marshalled at the time an exception occurred.static classTraceInformation.FieldInfoInformation about a field which was being marshalled at the time an exception occurred.static classTraceInformation.IncompleteObjectInfoInformation about an incomplete object being unmarshalled.static classTraceInformation.IndexInfoInformation about an index in an array or collection.static classTraceInformation.IndexTypeThe type of index for a multi-valued collection or map.static classTraceInformation.InfoInformation about the circumstances surrounding (un)marshalling.static classTraceInformation.MethodInfoInformation specific to a method execution.static classTraceInformation.ObjectInfoInformation about an object which was being (un-)marshalled at the time an exception occurred.static classTraceInformation.UserInfoUser information.
-
Field Summary
Fields Modifier and Type Field Description (package private) TraceInformation.Infoinfoprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description TraceInformation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddFieldInformation(java.lang.Throwable t, java.lang.String fieldName)Add information about a field which was being marshalled.static voidaddIncompleteObjectInformation(java.lang.Throwable t, java.lang.Class<?> targetClass)Add information about an incomplete object which was being unmarshalled.static voidaddIncompleteObjectInformation(java.lang.Throwable t, java.lang.String targetClassName)Add information about an incomplete object which was being unmarshalled.static voidaddIndexInformation(java.lang.Throwable t, int index, int size, TraceInformation.IndexType kind)Add information about an index into a collection which was being (un-)marshalled.static voidaddObjectInformation(java.lang.Throwable t, java.lang.Object targetObject)Add information about an object which was being (un-)marshalled.static voidaddUserInformation(java.lang.Throwable t, java.io.Serializable data)Add user information about problem with marshalling or unmarshalling.java.lang.ThrowablefillInStackTrace()private static java.lang.StringgetNiceClassName(java.lang.Class<?> clazz)private static TraceInformationgetOrAddTraceInformation(java.lang.Throwable t)voidsetStackTrace(java.lang.StackTraceElement[] stackTrace)java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
info
TraceInformation.Info info
-
-
Method Detail
-
fillInStackTrace
public java.lang.Throwable fillInStackTrace()
- Overrides:
fillInStackTracein classjava.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
setStackTrace
public void setStackTrace(java.lang.StackTraceElement[] stackTrace)
- Overrides:
setStackTracein classjava.lang.Throwable
-
getOrAddTraceInformation
private static TraceInformation getOrAddTraceInformation(java.lang.Throwable t)
-
getNiceClassName
private static java.lang.String getNiceClassName(java.lang.Class<?> clazz)
-
addUserInformation
public static void addUserInformation(java.lang.Throwable t, java.io.Serializable data)Add user information about problem with marshalling or unmarshalling.- Parameters:
t- the throwable to updatedata- the user data
-
addFieldInformation
public static void addFieldInformation(java.lang.Throwable t, java.lang.String fieldName)Add information about a field which was being marshalled.- Parameters:
t- the throwable to updatefieldName- the field name being (un-)marshalled
-
addObjectInformation
public static void addObjectInformation(java.lang.Throwable t, java.lang.Object targetObject)Add information about an object which was being (un-)marshalled.- Parameters:
t- the throwable to updatetargetObject- the target object which was being (un-)marshalled
-
addIncompleteObjectInformation
public static void addIncompleteObjectInformation(java.lang.Throwable t, java.lang.Class<?> targetClass)Add information about an incomplete object which was being unmarshalled.- Parameters:
t- the throwable to updatetargetClass- the class of the target object being unmarshalled
-
addIncompleteObjectInformation
public static void addIncompleteObjectInformation(java.lang.Throwable t, java.lang.String targetClassName)Add information about an incomplete object which was being unmarshalled.- Parameters:
t- the throwable to updatetargetClassName- the class of the target object being unmarshalled
-
addIndexInformation
public static void addIndexInformation(java.lang.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
-
-