Skip to content

Variable: errorCodes

ts
const errorCodes: {
  ADDRESS_TOO_LONG: string;
  DOMAIN_EMPTY_SEGMENT: string;
  DOMAIN_FORBIDDEN_TLDS: string;
  DOMAIN_INVALID_CHARS: string;
  DOMAIN_INVALID_TLDS_CHARS: string;
  DOMAIN_INVALID_UNICODE_CHARS: string;
  DOMAIN_LONG_SEGMENT: string;
  DOMAIN_NON_EMPTY_STRING: string;
  DOMAIN_SEGMENTS_COUNT: string;
  DOMAIN_SEGMENTS_COUNT_MAX: string;
  DOMAIN_TOO_LONG: string;
  EMPTY_LOCAL: string;
  EMPTY_LOCAL_SEGMENT: string;
  EMPTY_STRING: string;
  FORBIDDEN_UNICODE: string;
  INVALID_LOCAL_CHARS: string;
  LOCAL_TOO_LONG: string;
  MISSING_AT_CHAR: string;
  MULTIPLE_AT_CHAR: string;
};

Type Declaration

NameType
ADDRESS_TOO_LONGstring
DOMAIN_EMPTY_SEGMENTstring
DOMAIN_FORBIDDEN_TLDSstring
DOMAIN_INVALID_CHARSstring
DOMAIN_INVALID_TLDS_CHARSstring
DOMAIN_INVALID_UNICODE_CHARSstring
DOMAIN_LONG_SEGMENTstring
DOMAIN_NON_EMPTY_STRINGstring
DOMAIN_SEGMENTS_COUNTstring
DOMAIN_SEGMENTS_COUNT_MAXstring
DOMAIN_TOO_LONGstring
EMPTY_LOCALstring
EMPTY_LOCAL_SEGMENTstring
EMPTY_STRINGstring
FORBIDDEN_UNICODEstring
INVALID_LOCAL_CHARSstring
LOCAL_TOO_LONGstring
MISSING_AT_CHARstring
MULTIPLE_AT_CHARstring