Class UserManagementExceptionHandlerImpl

    • Constructor Detail

      • UserManagementExceptionHandlerImpl

        @Inject
        public UserManagementExceptionHandlerImpl​(com.atlassian.sal.api.message.I18nResolver i18nResolver)
    • Method Detail

      • setUpMappings

        @PostConstruct
        public void setUpMappings()
      • handleUserManagementException

        @NotNull
        public @NotNull Optional<javax.ws.rs.core.Response> handleUserManagementException​(@NotNull
                                                                                          @NotNull Exception exception,
                                                                                          @NotNull
                                                                                          @NotNull javax.ws.rs.core.MediaType mediaType)
        Description copied from interface: UserManagementExceptionHandler
        Attempt to produce a REST response of the mediaType based on the given exception.
        Specified by:
        handleUserManagementException in interface UserManagementExceptionHandler
        Returns:
        REST response to return or empty optional if this helper could not handle the given exception