/** * Constructs an instance of the proxied exception based on the class name, * message, stack trace and if applicable, the cause. * * @return The constructed {@link Throwable} instance */ public Throwable createException() { if (!hasException()) { return null; } if (original != null) { return original; } Throwable throwable = createProxyException( "Original exception caused: " + (serializationProcessException != null ? serializationProcessException.getClass() + ": " + serializationProcessException.getMessage() : "Unknown serialization issue")); return throwable; }
/** * Constructs an instance of the proxied exception based on the class name, * message, stack trace and if applicable, the cause. * * @return The constructed {@link Throwable} instance */ public Throwable createException() { if (!hasException()) { return null; } if (original != null) { return original; } Throwable throwable = createProxyException( "Original exception caused: " + (serializationProcessException != null ? serializationProcessException.getClass() + ": " + serializationProcessException.getMessage() : "Unknown serialization issue")); return throwable; }