224225226227228229230231232
*/ @Override public void onUnhandledError(Throwable caught) { boolean handled = this.handleSpecialErrors(caught); if (!handled) { ErrorDescription error = this.generateError(caught); this.showError(error); } }
462463464465466467468
} @Override public ErrorDescription generateNotAuthorizedError(HttpStatusCode statusCode) { this.statusCode = statusCode; return new ErrorDescription("generateNotAuthorized"); }
468469470471472473474
} @Override public ErrorDescription generateRpcSecurityExceptionError(RpcSecurityException exception) { this.rpcSecurityException = exception; return new ErrorDescription("generateRpcSecurityExceptionError"); }
474475476477478479480
} @Override public ErrorDescription generateRpcTokenExceptionError(RpcTokenException exception) { this.rpcTokenException = exception; return new ErrorDescription("generateRpcTokenExceptionError"); }
480481482483484485486
} @Override public ErrorDescription generateRequestTimeoutExceptionError(RequestTimeoutException exception) { this.requestTimeoutException = exception; return new ErrorDescription("generateRequestTimeoutExceptionError"); }
486487488489490491492
} @Override public ErrorDescription generateNoResponseReceivedError(Throwable exception) { this.exception = exception; return new ErrorDescription("generateNoResponseReceivedError"); }
492493494495496497498
} @Override public ErrorDescription generateIncompatibleRemoteServiceExceptionError(IncompatibleRemoteServiceException exception) { this.incompatibleRemoteServiceException = exception; return new ErrorDescription("generateIncompatibleRemoteServiceExceptionError"); }
498499500501502503504
} @Override public ErrorDescription generateGeneralRpcError(Throwable exception) { this.exception = exception; return new ErrorDescription("generateGeneralRpcError"); }
505506507508509510511
@Override public ErrorDescription generateGeneralRpcError(Throwable exception, HttpStatusCode statusCode) { this.exception = exception; this.statusCode = statusCode; return new ErrorDescription("generateGeneralRpcErrorWithStatus"); }