public InputValidator < I > check ( Validation < I > validation , ValidationMessage message ) throws ValidationException { try { if ( ! validation . check ( this . input ) ) { throw new ValidationException ( message . format ( this . input ) ) ; } } catch ( ValidationException e ) { throw e ; } catch ( Exception e ) { throw new ValidationException ( message . format ( this . input ) , e ) ; } return this ; }
Checks the given validation .