public static final RuntimeException convertException ( Exception ex ) { if ( ex instanceof RuntimeException ) { return ( RuntimeException ) ex ; } return new ExceptionConverter ( ex ) ; }
Convert an Exception into an unchecked exception . Return the exception if it is already an unchecked exception or return an ExceptionConverter wrapper otherwise