类 ErrorMessages

java.lang.Object
io.github.tcq1007.valid.errorcode.constants.ErrorMessages

public final class ErrorMessages extends Object
Constants for error messages used in error code validation
  • 字段详细资料

    • ONLY_ENUM_CLASSES_ALLOWED

      public static final String ONLY_ENUM_CLASSES_ALLOWED
      Error message when only enum classes are allowed to use @ValidErrorCode annotation.
      另请参阅:
    • ERROR_CODE_FIELD_NOT_FOUND

      public static final String ERROR_CODE_FIELD_NOT_FOUND
      Error message when the error code field is not found.
      另请参阅:
    • DUPLICATE_ERROR_CODE

      public static final String DUPLICATE_ERROR_CODE
      Error message when a duplicate error code is found.
      另请参阅:
    • ERROR_CODE_FIELD_MUST_BE_INT

      public static final String ERROR_CODE_FIELD_MUST_BE_INT
      Error message when the error code field must be of int type.
      另请参阅:
    • UNABLE_TO_EXTRACT_ERROR_CODE

      public static final String UNABLE_TO_EXTRACT_ERROR_CODE
      Error message when unable to extract error code value from enum constant.
      另请参阅:
    • ERROR_CODE_LENGTH_MISMATCH

      public static final String ERROR_CODE_LENGTH_MISMATCH
      Error message when the error code length does not match the expected length.
      另请参阅:
    • ERROR_CODE_PREFIX_MISMATCH

      public static final String ERROR_CODE_PREFIX_MISMATCH
      Error message when the error code prefix does not match the expected prefix.
      另请参阅:
    • INITIALIZING_PROCESSOR

      public static final String INITIALIZING_PROCESSOR
      Log message for initializing the ErrorCodeProcessor.
      另请参阅:
    • PROCESSING_ANNOTATIONS

      public static final String PROCESSING_ANNOTATIONS
      Log message for processing ErrorCodeProcessor annotations.
      另请参阅:
    • INVALID_ERROR_CODE_FORMAT

      public static final String INVALID_ERROR_CODE_FORMAT
      Error message when the error code format is invalid.
      另请参阅:
    • INVALID_ERROR_CODE_LENGTH

      public static final String INVALID_ERROR_CODE_LENGTH
      Error message when the error code length is invalid.
      另请参阅:
    • INVALID_ERROR_CODE_PREFIX

      public static final String INVALID_ERROR_CODE_PREFIX
      Error message when the error code prefix is invalid.
      另请参阅: