1. Domino REST
  2. Rest clients
  3. Fail handler

Fail handler

In a service factory setting up the request fail handler is optional, and in case we don't 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.

			@RequestFactory
public interface MoviesService {

    @Path("library/movies/:movieName")
    @GET
    Movie getMovieByName(@PathParam("movieName") String movieName);

    @Path("library/movies")
    @GET
    List<Movie> listMovies();

    @Path("library/movies/:name")
    @PUT
    @SuccessCodes({200})
    void updateMovie(@beanParam @RequestBody Movie movie);
}

		

We are a group of passionate people who love what we do

Donate & Support Us