@ControllerAdvice(basePackages="org.ff4j.spring.boot.web.api.resources") public class FF4jExceptionHandler extends Object
| Constructor and Description |
|---|
FF4jExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
authorizationNotExistsException() |
void |
badRequestHandler() |
void |
featureIdBlankException() |
void |
featureIdNotMatchException() |
void |
featureNotFoundException() |
void |
featureStoreNotCached() |
void |
flippingStrategyBadRequestException() |
void |
groupExistsException() |
void |
groupNotExistsException() |
void |
propertiesBadRequestException() |
void |
propertyNameBlankException() |
void |
propertyNameNotMatchException() |
void |
propertyNotFoundException() |
void |
propertyStoreNotCached() |
void |
roleExistsException() |
void |
roleNotExistsException() |
@ExceptionHandler(value=java.lang.IllegalArgumentException.class) @ResponseStatus(value=BAD_REQUEST, reason="bad request") public void badRequestHandler()
@ExceptionHandler(value=org.ff4j.services.exceptions.FeatureNotFoundException.class) @ResponseStatus(value=NOT_FOUND, reason="feature not found") public void featureNotFoundException()
@ExceptionHandler(value=org.ff4j.services.exceptions.FeatureIdBlankException.class) @ResponseStatus(value=BAD_REQUEST, reason="feature uid cannot be blank") public void featureIdBlankException()
@ExceptionHandler(value=org.ff4j.services.exceptions.FeatureIdNotMatchException.class) @ResponseStatus(value=BAD_REQUEST, reason="feature uid did not match with the requested feature uid to be created or updated") public void featureIdNotMatchException()
@ExceptionHandler(value=org.ff4j.services.exceptions.FlippingStrategyBadRequestException.class) @ResponseStatus(value=BAD_REQUEST, reason="flipping strategy specified wrongly") public void flippingStrategyBadRequestException()
@ExceptionHandler(value=org.ff4j.services.exceptions.PropertiesBadRequestException.class) @ResponseStatus(value=BAD_REQUEST, reason="properties specified wrongly") public void propertiesBadRequestException()
@ExceptionHandler(value=org.ff4j.services.exceptions.RoleExistsException.class) @ResponseStatus(value=NOT_MODIFIED, reason="role already exists") public void roleExistsException()
@ExceptionHandler(value=org.ff4j.services.exceptions.RoleNotExistsException.class) @ResponseStatus(value=NOT_FOUND, reason="role does not exist") public void roleNotExistsException()
@ExceptionHandler(value=org.ff4j.services.exceptions.GroupExistsException.class) @ResponseStatus(value=NOT_MODIFIED, reason="group already exists") public void groupExistsException()
@ExceptionHandler(value=org.ff4j.services.exceptions.GroupNotExistsException.class) @ResponseStatus(value=NOT_FOUND, reason="group does not exist") public void groupNotExistsException()
@ExceptionHandler(value=org.ff4j.services.exceptions.FeatureStoreNotCached.class) @ResponseStatus(value=NOT_FOUND, reason="feature store is not cached") public void featureStoreNotCached()
@ExceptionHandler(value=org.ff4j.services.exceptions.AuthorizationNotExistsException.class) @ResponseStatus(value=NOT_FOUND, reason="no security has been defined") public void authorizationNotExistsException()
@ExceptionHandler(value=org.ff4j.services.exceptions.PropertyNotFoundException.class) @ResponseStatus(value=NOT_FOUND, reason="property not found") public void propertyNotFoundException()
@ExceptionHandler(value=org.ff4j.services.exceptions.PropertyNameBlankException.class) @ResponseStatus(value=BAD_REQUEST, reason="property name cannot be blank") public void propertyNameBlankException()
@ExceptionHandler(value=org.ff4j.services.exceptions.PropertyNameNotMatchException.class) @ResponseStatus(value=BAD_REQUEST, reason="property name did not match with the requested property name to be created or updated") public void propertyNameNotMatchException()
@ExceptionHandler(value=org.ff4j.services.exceptions.PropertyStoreNotCached.class) @ResponseStatus(value=NOT_FOUND, reason="property store is not cached") public void propertyStoreNotCached()
Copyright © 2013–2016 FF4J. All rights reserved.