@Test void testMapProcessInstanceDuplicatedException() { Object response = tested.mapException(new ProcessInstanceDuplicatedException("processInstanceId")); assertThat(response).isEqualTo(conflictResponse); }
public <R extends Exception> T mapException(R exception) { return mapper .getOrDefault(exception.getClass(), this::internalError) .apply(exception); }
BaseExceptionHandler { public <R extends Exception> T mapException(R exception) { return mapper .getOrDefault(exception.getClass(), this::internalError) .apply(exception); } }
BaseExceptionHandler { public <R extends Exception> T mapException(R exception) { return mapper .getOrDefault(exception.getClass(), this::internalError) .apply(exception); } BaseExceptionHandler(); }
BaseExceptionHandler { public <R extends Exception> T mapException(R exception) { return mapper .getOrDefault(exception.getClass(), this::internalError) .apply(exception); } BaseExceptionHandler(); T mapException(R exception); }
BaseExceptionHandler { public <R extends Exception> T mapException(R exception) { return mapper .getOrDefault(exception.getClass(), this::internalError) .apply(exception); } BaseExceptionHandler(); T mapException(R exception); static final String MESSAGE; static final String PROCESS_INSTANCE_ID; static final String VARIABLE; static final String NODE_INSTANCE_ID; static final String NODE_ID; static final String FAILED_NODE_ID; static final String ID; }