Interface UserManagementExceptionHandler

  • All Known Implementing Classes:
    UserManagementExceptionHandlerImpl

    public interface UserManagementExceptionHandler
    Helper for handling exceptions related to user management (Atlassian user, Embedded Crowd, and our own services).
    • Method Detail

      • handleUserManagementException

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