Added in API level 24

Error


class Error
kotlin.Any
   ↳ kotlin.Enum<android.icu.text.IDNA.Error>
   ↳ android.icu.text.IDNA.Error

IDNA error bit set values. When a domain name or label fails a processing step or does not meet the validity criteria, then one or more of these error bits are set.

Summary

Enum values

A label does not meet the IDNA BiDi requirements (for right-to-left characters).

A label does not meet the IDNA CONTEXTJ requirements.

A label does not meet the IDNA CONTEXTO requirements for digits.

A label does not meet the IDNA CONTEXTO requirements for punctuation characters.

A label or domain name contains disallowed characters.

A domain name is longer than 255 bytes in its storage form.

A non-final domain name label (or the whole domain name) is empty.

A label contains hyphen-minus ('-') in the third and fourth positions.

An ACE label does not contain a valid label string.

A label contains a dot=full stop.

A domain name label is longer than 63 bytes.

A label starts with a combining mark.

A label starts with a hyphen-minus ('-').

A label starts with "xn--" but does not contain valid Punycode.

A label ends with a hyphen-minus ('-').

Enum values

BIDI

Added in API level 24
enum val BIDI : IDNA.Error

A label does not meet the IDNA BiDi requirements (for right-to-left characters).

CONTEXTJ

Added in API level 24
enum val CONTEXTJ : IDNA.Error

A label does not meet the IDNA CONTEXTJ requirements.

CONTEXTO_DIGITS

Added in API level 24
enum val CONTEXTO_DIGITS : IDNA.Error

A label does not meet the IDNA CONTEXTO requirements for digits. Arabic-Indic Digits (U+066x) must not be mixed with Extended Arabic-Indic Digits (U+06Fx).

CONTEXTO_PUNCTUATION

Added in API level 24
enum val CONTEXTO_PUNCTUATION : IDNA.Error

A label does not meet the IDNA CONTEXTO requirements for punctuation characters. Some punctuation characters "Would otherwise have been DISALLOWED" but are allowed in certain contexts. (RFC 5892)

DISALLOWED

Added in API level 24
enum val DISALLOWED : IDNA.Error

A label or domain name contains disallowed characters.

DOMAIN_NAME_TOO_LONG

Added in API level 24
enum val DOMAIN_NAME_TOO_LONG : IDNA.Error

A domain name is longer than 255 bytes in its storage form. (See STD13/RFC1034 3.1. Name space specifications and terminology.) This is only checked in ToASCII operations, and only if the output domain name is all-ASCII.

EMPTY_LABEL

Added in API level 24
enum val EMPTY_LABEL : IDNA.Error

A non-final domain name label (or the whole domain name) is empty.

HYPHEN_3_4

Added in API level 24
enum val HYPHEN_3_4 : IDNA.Error

A label contains hyphen-minus ('-') in the third and fourth positions.

INVALID_ACE_LABEL

Added in API level 24
enum val INVALID_ACE_LABEL : IDNA.Error

An ACE label does not contain a valid label string. The label was successfully ACE (Punycode) decoded but the resulting string had severe validation errors. For example, it might contain characters that are not allowed in ACE labels, or it might not be normalized.

LABEL_HAS_DOT

Added in API level 24
enum val LABEL_HAS_DOT : IDNA.Error

A label contains a dot=full stop. This can occur in an input string for a single-label function.

LABEL_TOO_LONG

Added in API level 24
enum val LABEL_TOO_LONG : IDNA.Error

A domain name label is longer than 63 bytes. (See STD13/RFC1034 3.1. Name space specifications and terminology.) This is only checked in ToASCII operations, and only if the output label is all-ASCII.

LEADING_COMBINING_MARK

Added in API level 24
enum val LEADING_COMBINING_MARK : IDNA.Error

A label starts with a combining mark.

LEADING_HYPHEN

Added in API level 24
enum val LEADING_HYPHEN : IDNA.Error

A label starts with a hyphen-minus ('-').

PUNYCODE

Added in API level 24
enum val PUNYCODE : IDNA.Error

A label starts with "xn--" but does not contain valid Punycode. That is, an xn-- label failed Punycode decoding.

TRAILING_HYPHEN

Added in API level 24
enum val TRAILING_HYPHEN : IDNA.Error

A label ends with a hyphen-minus ('-').