DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
public void contributeRequestExceptionHandler(MappedConfiguration<Class<?>, Class<?>>Object> configuration) { configuration.add(SmtpNotRespondingException.class, ServiceFailure.class); } |
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
public void contributeRequestExceptionHandler(OperationQueue operationQueue, MappedConfiguration<Class<?>, Class<?>>Object> configuration) { final ExceptionHandlerAssistant assistant = new ExceptionHandlerAssistant() { @Override public Object handleRequestException(Throwable exception, List<Object> exceptionContext) throws IOException { ServiceException serviceException = (ServiceException)exception; if (serviceException.isInterruptedOperationRecoverable()) { operationQueue.add(serviceException.getInterruptedOperation()); return OperationScheduled.class; } else return ServiceUnavailable.class; } }; configuration.add(ServiceException.class, assistant); } |
...