-
-
Notifications
You must be signed in to change notification settings - Fork 5
Default failed response handler
Ahmad K. Bawaneh edited this page Dec 28, 2019
·
2 revisions
In a service factory setting up the request fail handler is optional, and in case we dont specify a fail handler a default one will be used, the default response handler from domino-rest will just log the exception.
we can override the default fail handler using DominoRestConfig
.
DominoRestConfig.getInstance()
.setDefaultFailHandler(failedResponse -> {
//do something for a failed request that did not specify a fail handler.
});
- Home
- Quick start
- Sharing clients
-
Configuration
- Locating resource classes
- Service root
- Resource root
- Http methods
- Service method path mapping
- Service path
- Query parameters
- Path parameters
- Header parameters
- Date format
- Request body
- Request and Response mapping
- Produces and Consumes
- Success codes
- Timeout and maximum retries
- With credentials
- Custom request URL
- Global interceptors
- Default failed response handler
- Interface inheritance
- Multipart form data