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 Summary
Constructors Constructor Description UserManagementExceptionHandlerImpl(com.atlassian.sal.api.message.I18nResolver i18nResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Optional<javax.ws.rs.core.Response>
handleUserManagementException(@NotNull Exception exception, @NotNull javax.ws.rs.core.MediaType mediaType)
Attempt to produce a REST response of themediaType
based on the givenexception
.void
setUpMappings()
-
-
-
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 themediaType
based on the givenexception
.- Specified by:
handleUserManagementException
in interfaceUserManagementExceptionHandler
- Returns:
- REST response to return or empty optional if this helper could not handle the given exception
-
-