Package 

Class FF4jExceptionHandler

  • All Implemented Interfaces:

    @ControllerAdvice(basePackages = {"org.ff4j.spring.boot.web.api.resources"}) 
    public final class FF4jExceptionHandler
    
                        

    Created by Paul

    • Constructor Detail

      • FF4jExceptionHandler

        FF4jExceptionHandler()
    • Method Detail

      • featureNotFoundException

        @ExceptionHandler(value = {FeatureNotFoundException.class})@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "feature not found") final Unit featureNotFoundException()
      • featureIdBlankException

        @ExceptionHandler(value = {FeatureIdBlankException.class})@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "feature uid cannot be blank") final Unit featureIdBlankException()
      • featureIdNotMatchException

        @ExceptionHandler(value = {FeatureIdNotMatchException.class})@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "feature uid did not match with the requested feature uid to be created or updated") final Unit featureIdNotMatchException()
      • flippingStrategyBadRequestException

        @ExceptionHandler(value = {FlippingStrategyBadRequestException.class})@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "flipping strategy specified wrongly") final Unit flippingStrategyBadRequestException()
      • propertiesBadRequestException

        @ExceptionHandler(value = {PropertiesBadRequestException.class})@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "properties specified wrongly") final Unit propertiesBadRequestException()
      • roleExistsException

        @ExceptionHandler(value = {RoleExistsException.class})@ResponseStatus(value = HttpStatus.NOT_MODIFIED, reason = "role already exists") final Unit roleExistsException()
      • roleNotExistsException

        @ExceptionHandler(value = {RoleNotExistsException.class})@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "role does not exist") final Unit roleNotExistsException()
      • groupExistsException

        @ExceptionHandler(value = {GroupExistsException.class})@ResponseStatus(value = HttpStatus.NOT_MODIFIED, reason = "group already exists") final Unit groupExistsException()
      • groupNotExistsException

        @ExceptionHandler(value = {GroupNotExistsException.class})@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "group does not exist") final Unit groupNotExistsException()
      • featureStoreNotCached

        @ExceptionHandler(value = {FeatureStoreNotCached.class})@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "feature store is not cached") final Unit featureStoreNotCached()
      • authorizationNotExistsException

        @ExceptionHandler(value = {AuthorizationNotExistsException.class})@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "no security has been defined") final Unit authorizationNotExistsException()
      • propertyNotFoundException

        @ExceptionHandler(value = {PropertyNotFoundException.class})@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "property not found") final Unit propertyNotFoundException()
      • propertyNameBlankException

        @ExceptionHandler(value = {PropertyNameBlankException.class})@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "property name cannot be blank") final Unit propertyNameBlankException()
      • propertyValueInvalidException

        @ExceptionHandler(value = {InvalidPropertyTypeException.class})@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "bad request") final Unit propertyValueInvalidException()
      • propertyNameNotMatchException

        @ExceptionHandler(value = {PropertyNameNotMatchException.class})@ResponseStatus(value = HttpStatus.BAD_REQUEST, reason = "property name did not match with the requested property name to be created or updated") final Unit propertyNameNotMatchException()
      • propertyStoreNotCached

        @ExceptionHandler(value = {PropertyStoreNotCached.class})@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "property store is not cached") final Unit propertyStoreNotCached()