Class RestExceptionMapper

java.lang.Object
com.atlassian.confluence.rest.v2.api.exception.ServiceExceptionMapper
com.atlassian.confluence.plugins.restapi.exceptions.RestExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<Exception>

public class RestExceptionMapper extends ServiceExceptionMapper
Ensures ServiceExceptions thrown by REST resources are converted into appropriate RestErrors before returning the Response.
  • Constructor Details

    • RestExceptionMapper

      public RestExceptionMapper()
  • Method Details

    • _annotateThisClassWithProvider

      protected void _annotateThisClassWithProvider()
      Description copied from class: ServiceExceptionMapper
      This method exists to remind developers that they must annotate the implementing class with Provider. The implementing class must also be placed in a package scanned by Atlassian-REST for REST modules.
      Specified by:
      _annotateThisClassWithProvider in class ServiceExceptionMapper