private static SerializableThrowable createSerializable(Throwable t) { SerializableThrowable throwable = new SerializableThrowable(null, t.getMessage()); throwable.setStackTrace(t.getStackTrace()); throwable.initCause(t.getCause()); throwable.originalThrowable = t; ThrowableTypeResolver.resolveDesignatedType(throwable, t); return throwable; } }
public static void deserialize( SerializationStreamReader streamReader, SerializableThrowable instance) throws SerializationException { String type = streamReader.readString(); boolean typeIsExact = streamReader.readBoolean(); instance.setDesignatedType(type, typeIsExact); instance.setStackTrace((StackTraceElement[]) streamReader.readObject()); instance.initCause((Throwable) streamReader.readObject()); }
private static SerializableThrowable createSerializable(Throwable t) { SerializableThrowable throwable = new SerializableThrowable(null, t.getMessage()); throwable.setStackTrace(t.getStackTrace()); throwable.initCause(t.getCause()); throwable.originalThrowable = t; ThrowableTypeResolver.resolveDesignatedType(throwable, t); return throwable; } }
private static SerializableThrowable createSerializable(Throwable t) { SerializableThrowable throwable = new SerializableThrowable(null, t.getMessage()); throwable.setStackTrace(t.getStackTrace()); throwable.initCause(t.getCause()); throwable.originalThrowable = t; ThrowableTypeResolver.resolveDesignatedType(throwable, t); return throwable; } }
public static void deserialize( SerializationStreamReader streamReader, SerializableThrowable instance) throws SerializationException { String type = streamReader.readString(); boolean typeIsExact = streamReader.readBoolean(); instance.setDesignatedType(type, typeIsExact); instance.setStackTrace((StackTraceElement[]) streamReader.readObject()); instance.initCause((Throwable) streamReader.readObject()); }
public static void deserialize( SerializationStreamReader streamReader, SerializableThrowable instance) throws SerializationException { String type = streamReader.readString(); boolean typeIsExact = streamReader.readBoolean(); instance.setDesignatedType(type, typeIsExact); instance.setStackTrace((StackTraceElement[]) streamReader.readObject()); instance.initCause((Throwable) streamReader.readObject()); }