Class UserManagementExceptionHandlerImpl

java.lang.Object
com.atlassian.bamboo.plugins.rest.common.exception.UserManagementExceptionHandlerImpl
All Implemented Interfaces:
UserManagementExceptionHandler

@Component public class UserManagementExceptionHandlerImpl extends Object implements UserManagementExceptionHandler
  • Constructor Details

    • UserManagementExceptionHandlerImpl

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

    • 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