/** * Add information about an incomplete object which was being unmarshalled. * * @param t the throwable to update * @param targetClassName the class of the target object being unmarshalled */ public static void addIncompleteObjectInformation(Throwable t, String targetClassName) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new IncompleteObjectInfo(oldInfo, targetClassName); }
/** * Add information about a field which was being marshalled. * * @param t the throwable to update * @param fieldName the field name being (un-)marshalled */ public static void addFieldInformation(Throwable t, String fieldName) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new FieldInfo(oldInfo, fieldName); }
/** * Add user information about problem with marshalling or unmarshalling. * * @param t the throwable to update * @param data the user data */ public static void addUserInformation(Throwable t, Serializable data) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new UserInfo(oldInfo, data); }
/** * Add information about an index into a collection which was being (un-)marshalled. * * @param t the throwable to update * @param index the index of the element in question * @param size the size of the collection in question * @param kind the type of element being processed */ public static void addIndexInformation(Throwable t, int index, int size, IndexType kind) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new IndexInfo(oldInfo, index, size, kind); }
/** * Add information about an object which was being (un-)marshalled. * * @param t the throwable to update * @param targetObject the target object which was being (un-)marshalled */ public static void addObjectInformation(Throwable t, Object targetObject) { final TraceInformation ti = getOrAddTraceInformation(t); final String targetClassName = getNiceClassName(targetObject.getClass()); int targetHashCode = 0; try { targetHashCode = targetObject.hashCode(); } catch (Throwable ignored) { // guess we won't know the hash code! } final Info oldInfo = ti.info; ti.info = new ObjectInfo(oldInfo, targetClassName, targetHashCode); }
/** * Add user information about problem with marshalling or unmarshalling. * * @param t the throwable to update * @param data the user data */ public static void addUserInformation(Throwable t, Serializable data) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new UserInfo(oldInfo, data); }
/** * Add information about an incomplete object which was being unmarshalled. * * @param t the throwable to update * @param targetClassName the class of the target object being unmarshalled */ public static void addIncompleteObjectInformation(Throwable t, String targetClassName) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new IncompleteObjectInfo(oldInfo, targetClassName); }
/** * Add user information about problem with marshalling or unmarshalling. * * @param t the throwable to update * @param data the user data */ public static void addUserInformation(Throwable t, Serializable data) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new UserInfo(oldInfo, data); }
/** * Add information about an index into a collection which was being (un-)marshalled. * * @param t the throwable to update * @param index the index of the element in question * @param size the size of the collection in question * @param kind the type of element being processed */ public static void addIndexInformation(Throwable t, int index, int size, IndexType kind) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new IndexInfo(oldInfo, index, size, kind); }
/** * Add information about an incomplete object which was being unmarshalled. * * @param t the throwable to update * @param targetClassName the class of the target object being unmarshalled */ public static void addIncompleteObjectInformation(Throwable t, String targetClassName) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new IncompleteObjectInfo(oldInfo, targetClassName); }
/** * Add information about a field which was being marshalled. * * @param t the throwable to update * @param fieldName the field name being (un-)marshalled */ public static void addFieldInformation(Throwable t, String fieldName) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new FieldInfo(oldInfo, fieldName); }
/** * Add information about an incomplete object which was being unmarshalled. * * @param t the throwable to update * @param targetClassName the class of the target object being unmarshalled */ public static void addIncompleteObjectInformation(Throwable t, String targetClassName) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new IncompleteObjectInfo(oldInfo, targetClassName); }
/** * Add information about a field which was being marshalled. * * @param t the throwable to update * @param fieldName the field name being (un-)marshalled */ public static void addFieldInformation(Throwable t, String fieldName) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new FieldInfo(oldInfo, fieldName); }
/** * Add information about a field which was being marshalled. * * @param t the throwable to update * @param fieldName the field name being (un-)marshalled */ public static void addFieldInformation(Throwable t, String fieldName) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new FieldInfo(oldInfo, fieldName); }
/** * Add information about a field which was being marshalled. * * @param t the throwable to update * @param fieldName the field name being (un-)marshalled */ public static void addFieldInformation(Throwable t, String fieldName) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new FieldInfo(oldInfo, fieldName); }
/** * Add user information about problem with marshalling or unmarshalling. * * @param t the throwable to update * @param data the user data */ public static void addUserInformation(Throwable t, Serializable data) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new UserInfo(oldInfo, data); }
/** * Add user information about problem with marshalling or unmarshalling. * * @param t the throwable to update * @param data the user data */ public static void addUserInformation(Throwable t, Serializable data) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new UserInfo(oldInfo, data); }
/** * Add information about a field which was being marshalled. * * @param t the throwable to update * @param fieldName the field name being (un-)marshalled */ public static void addFieldInformation(Throwable t, String fieldName) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new FieldInfo(oldInfo, fieldName); }
/** * Add information about an index into a collection which was being (un-)marshalled. * * @param t the throwable to update * @param index the index of the element in question * @param size the size of the collection in question * @param kind the type of element being processed */ public static void addIndexInformation(Throwable t, int index, int size, IndexType kind) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new IndexInfo(oldInfo, index, size, kind); }
/** * Add information about an incomplete object which was being unmarshalled. * * @param t the throwable to update * @param targetClassName the class of the target object being unmarshalled */ public static void addIncompleteObjectInformation(Throwable t, String targetClassName) { final TraceInformation ti = getOrAddTraceInformation(t); final Info oldInfo = ti.info; ti.info = new IncompleteObjectInfo(oldInfo, targetClassName); }