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 |
|
Construct a ParseException object with the given message and error code |
Public methods | |
---|---|
open Boolean |
Compare this ParseException to another and evaluate if they are equal. |
open Int |
getError() Returns the error code of this exception. |
open String |
toString() Returns the position of error in the rules string |
Inherited functions | |
---|---|
Constants
DOMAIN_NAME_TOO_LONG_ERROR
static val DOMAIN_NAME_TOO_LONG_ERROR: Int
Value: 11
Public constructors
StringPrepParseException
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
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
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
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
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
open fun toString(): String
Returns the position of error in the rules string
Return | |
---|---|
String |
String |