Skip to main content

Variable: VALIDATION_ERRORS

const VALIDATION_ERRORS: {
EMAIL_INVALID: "Email format is invalid";
FIELD_INVALID_FORMAT: "Field format is invalid";
FIELD_REQUIRED: "This field is required";
HOST_INVALID: "Host address is invalid";
PORT_INVALID: "Port number must be between 1 and 65535";
STRING_TOO_LONG: "Value exceeds maximum length";
STRING_TOO_SHORT: "Value is below minimum length";
URL_INVALID: "URL format is invalid";
VALIDATION_FAILED: "Validation failed";
VALUE_OUT_OF_RANGE: "Value is out of allowed range";
};

Defined in: shared/utils/errorCatalog.ts:130

Validation-related error messages.

Type Declarationโ€‹

EMAIL_INVALIDโ€‹

readonly EMAIL_INVALID: "Email format is invalid" = "Email format is invalid";

Error when email format is invalid

FIELD_INVALID_FORMATโ€‹

readonly FIELD_INVALID_FORMAT: "Field format is invalid" = "Field format is invalid";

Error when field format is invalid

FIELD_REQUIREDโ€‹

readonly FIELD_REQUIRED: "This field is required" = "This field is required";

Error when required field is missing

HOST_INVALIDโ€‹

readonly HOST_INVALID: "Host address is invalid" = "Host address is invalid";

Error when host address is invalid

PORT_INVALIDโ€‹

readonly PORT_INVALID: "Port number must be between 1 and 65535" = "Port number must be between 1 and 65535";

Error when port number is invalid

STRING_TOO_LONGโ€‹

readonly STRING_TOO_LONG: "Value exceeds maximum length" = "Value exceeds maximum length";

Error when string length exceeds maximum

STRING_TOO_SHORTโ€‹

readonly STRING_TOO_SHORT: "Value is below minimum length" = "Value is below minimum length";

Error when string length is below minimum

URL_INVALIDโ€‹

readonly URL_INVALID: "URL format is invalid" = "URL format is invalid";

Error when URL format is invalid

VALIDATION_FAILEDโ€‹

readonly VALIDATION_FAILED: "Validation failed" = "Validation failed";

Error when validation fails for an event

VALUE_OUT_OF_RANGEโ€‹

readonly VALUE_OUT_OF_RANGE: "Value is out of allowed range" = "Value is out of allowed range";

Error when value is out of allowed range

Remarksโ€‹

Error messages for data validation, constraint violations, and input validation errors.