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
ConstructorDescriptionUserManagementExceptionHandlerImpl
(com.atlassian.sal.api.message.I18nResolver i18nResolver) -
Method Summary
Modifier and TypeMethodDescription@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
-
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 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
-