private <R> void handleException(ValidationExceptionHandler<R> handler, R result) throws HL7Exception { if (handler.hasFailed()) { HL7Exception e = new HL7Exception("Validation has failed"); e.setDetail(result); if (result instanceof Message) e.setResponseMessage((Message)result); throw e; } }
private <R> void handleException(ValidationExceptionHandler<R> handler, R result) throws HL7Exception { if (handler.hasFailed()) { HL7Exception e = new HL7Exception("Validation has failed"); e.setDetail(result); if (result instanceof Message) e.setResponseMessage((Message)result); throw e; } }