Class RestExceptionMapper

  • All Implemented Interfaces:<Exception>

    public class RestExceptionMapper
    extends ServiceExceptionMapper
    Converts ServiceExceptions into Responses containing RestErrors.

    The conversion will be done automatically for any REST Resource that throws a ServiceException.

    • Constructor Detail

      • RestExceptionMapper

        public RestExceptionMapper()
    • Method Detail

      • _annotateThisClassWithProvider

        protected void _annotateThisClassWithProvider()
        Description copied from class: ServiceExceptionMapper
        This method exists to remind developers that they need to annotate the implementing class with jersey's annotation. The implementing class will also need to be placed in the package that is scanned by the atlassian-rest for rest modules.
        Specified by:
        _annotateThisClassWithProvider in class ServiceExceptionMapper