/** * Static method to create an exception proxy for the passed in * {@link Throwable} class. If null is passed in, null is returned as the * exception proxy * * @param throwable * Exception to proxy * * @return An ExceptionProxy representing the exception passed in */ public static ExceptionProxy createForException(Throwable throwable) { if (throwable == null) { return null; } return new ExceptionProxy(throwable); }
/** * Static method to create an exception proxy for the passed in * {@link Throwable} class. If null is passed in, null is returned as the * exception proxy * * @param throwable * Exception to proxy * * @return An ExceptionProxy representing the exception passed in */ public static ExceptionProxy createForException(Throwable throwable) { if (throwable == null) { return null; } return new ExceptionProxy(throwable); }