Added in API level 24

StringPrepParseException


open class StringPrepParseException : ParseException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ java.text.ParseException
   ↳ android.icu.text.StringPrepParseException

Exception that signals an error has occurred while parsing the input to StringPrep or IDNA.

Summary

Constants
static Int

static Int

static Int

static Int

static Int

static Int

static Int

static Int

static Int

static Int

static Int

static Int

Public constructors
StringPrepParseException(message: String!, error: Int)

Construct a ParseException object with the given message and error code

StringPrepParseException(message: String!, error: Int, rules: String!, pos: Int)

Construct a ParseException object with the given message and error code

StringPrepParseException(message: String!, error: Int, rules: String!, pos: Int, lineNumber: Int)

Construct a ParseException object with the given message and error code

Public methods
open Boolean
equals(other: Any?)

Compare this ParseException to another and evaluate if they are equal.

open Int

Returns the error code of this exception.

open String

Returns the position of error in the rules string

Inherited functions

Constants

ACE_PREFIX_ERROR

Added in API level 24
static val ACE_PREFIX_ERROR: Int
Value: 6

BUFFER_OVERFLOW_ERROR

Added in API level 24
static val BUFFER_OVERFLOW_ERROR: Int
Value: 9

CHECK_BIDI_ERROR

Added in API level 24
static val CHECK_BIDI_ERROR: Int
Value: 4

DOMAIN_NAME_TOO_LONG_ERROR

Added in API level 24
static val DOMAIN_NAME_TOO_LONG_ERROR: Int
Value: 11

ILLEGAL_CHAR_FOUND

Added in API level 24
static val ILLEGAL_CHAR_FOUND: Int
Value: 1

INVALID_CHAR_FOUND

Added in API level 24
static val INVALID_CHAR_FOUND: Int
Value: 0

LABEL_TOO_LONG_ERROR

Added in API level 24
static val LABEL_TOO_LONG_ERROR: Int
Value: 8

PROHIBITED_ERROR

Added in API level 24
static val PROHIBITED_ERROR: Int
Value: 2

STD3_ASCII_RULES_ERROR

Added in API level 24
static val STD3_ASCII_RULES_ERROR: Int
Value: 5

UNASSIGNED_ERROR

Added in API level 24
static val UNASSIGNED_ERROR: Int
Value: 3

VERIFICATION_ERROR

Added in API level 24
static val VERIFICATION_ERROR: Int
Value: 7

ZERO_LENGTH_LABEL

Added in API level 24
static val ZERO_LENGTH_LABEL: Int
Value: 10

Public constructors

StringPrepParseException

Added in API level 24
StringPrepParseException(
    message: String!,
    error: Int)

Construct a ParseException object with the given message and error code

Parameters
message String!: A string describing the type of error that occurred
error Int: The error that has occurred

StringPrepParseException

Added in API level 24
StringPrepParseException(
    message: String!,
    error: Int,
    rules: String!,
    pos: Int)

Construct a ParseException object with the given message and error code

Parameters
message String!: A string describing the type of error that occurred
error Int: The error that has occurred
rules String!: The input rules string
pos Int: The position of error in the rules string

StringPrepParseException

Added in API level 24
StringPrepParseException(
    message: String!,
    error: Int,
    rules: String!,
    pos: Int,
    lineNumber: Int)

Construct a ParseException object with the given message and error code

Parameters
message String!: A string describing the type of error that occurred
error Int: The error that has occurred
rules String!: The input rules string
pos Int: The position of error in the rules string
lineNumber Int: The line number at which the error has occurred. If the parse engine is not using this field, it should set it to zero. Otherwise it should be a positive integer. The default value of this field is -1. It will be set to 0 if the code populating this struct is not using line numbers.

Public methods

equals

Added in API level 24
open fun equals(other: Any?): Boolean

Compare this ParseException to another and evaluate if they are equal. The comparison works only on the type of error and does not compare the rules strings, if any, for equality.

Parameters
obj the reference object with which to compare.
other Any?: The exception that this object should be compared to
Return
Boolean true if the objects are equal, false if unequal

getError

Added in API level 24
open fun getError(): Int

Returns the error code of this exception. This method is only used for testing to verify the error.

Return
Int The error code

toString

Added in API level 24
open fun toString(): String

Returns the position of error in the rules string

Return
String String