Class PubServerExceptionMapper

java.lang.Object
com.priint.pubserver.webservice.exceptionmapper.PubServerExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<PubServerException>

@Provider public class PubServerExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<PubServerException>
Wraps all PubServerExceptions thrown by any service method to the container into an instance of a {link ServiceResult} object. So clients have a standard way to deserialize all service results.

Note: If the request cannot be served due to a malformed request the client will receive the default exception format of the container, which may be an HTML formatted text. This will e.g. happen if the clients sends a request without an "Accept" header.

Since:
4.0.5
  • Constructor Details

    • PubServerExceptionMapper

      public PubServerExceptionMapper()
  • Method Details