Class DekRegistryErrors

java.lang.Object
io.confluent.dekregistry.web.rest.exceptions.DekRegistryErrors

public class DekRegistryErrors extends Object
  • Field Details

    • KEY_NOT_FOUND_MESSAGE_FORMAT

      public static final String KEY_NOT_FOUND_MESSAGE_FORMAT
      See Also:
    • KEY_NOT_FOUND_ERROR_CODE

      public static final int KEY_NOT_FOUND_ERROR_CODE
      See Also:
    • KEY_NOT_SOFT_DELETED_MESSAGE_FORMAT

      public static final String KEY_NOT_SOFT_DELETED_MESSAGE_FORMAT
      See Also:
    • KEY_NOT_SOFT_DELETED_ERROR_CODE

      public static final int KEY_NOT_SOFT_DELETED_ERROR_CODE
      See Also:
    • KEY_SOFT_DELETED_MESSAGE_FORMAT

      public static final String KEY_SOFT_DELETED_MESSAGE_FORMAT
      See Also:
    • KEY_SOFT_DELETED_ERROR_CODE

      public static final int KEY_SOFT_DELETED_ERROR_CODE
      See Also:
    • ALREADY_EXISTS_MESSAGE_FORMAT

      public static final String ALREADY_EXISTS_MESSAGE_FORMAT
      See Also:
    • ALREADY_EXISTS_ERROR_CODE

      public static final int ALREADY_EXISTS_ERROR_CODE
      See Also:
    • TOO_MANY_KEYS_MESSAGE_FORMAT

      public static final String TOO_MANY_KEYS_MESSAGE_FORMAT
      See Also:
    • TOO_MANY_KEYS_ERROR_CODE

      public static final int TOO_MANY_KEYS_ERROR_CODE
      See Also:
    • DEK_GENERATION_FORBIDDEN_ERROR_CODE

      public static final int DEK_GENERATION_FORBIDDEN_ERROR_CODE
      See Also:
    • INVALID_KEY_ERROR_CODE

      public static final int INVALID_KEY_ERROR_CODE
      See Also:
    • REFERENCE_EXISTS_ERROR_CODE

      public static final int REFERENCE_EXISTS_ERROR_CODE
      See Also:
    • DEK_GENERATION_ERROR_CODE

      public static final int DEK_GENERATION_ERROR_CODE
      See Also:
  • Constructor Details

    • DekRegistryErrors

      public DekRegistryErrors()
  • Method Details

    • keyNotFoundException

      public static io.confluent.rest.exceptions.RestException keyNotFoundException(String name)
    • keyNotSoftDeletedException

      public static io.confluent.rest.exceptions.RestException keyNotSoftDeletedException(String name)
    • keySoftDeletedException

      public static io.confluent.rest.exceptions.RestException keySoftDeletedException(String name)
    • alreadyExistsException

      public static io.confluent.rest.exceptions.RestException alreadyExistsException(String name)
    • tooManyKeysException

      public static io.confluent.rest.exceptions.RestException tooManyKeysException(int maxKeys)
    • invalidOrMissingKeyInfo

      public static RestInvalidKeyException invalidOrMissingKeyInfo(String field)
    • referenceExistsException

      public static RestReferenceExistsException referenceExistsException(String name)
    • dekGenerationException

      public static io.confluent.rest.exceptions.RestException dekGenerationException(DekGenerationException e)