Package com.ibm.icu.text
Class StringPrepParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.text.ParseException
com.ibm.icu.text.StringPrepParseException
- All Implemented Interfaces:
Serializable
Exception that signals an error has occurred while parsing the
input to StringPrep or IDNA.
- Author:
- Ram Viswanadha
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionStringPrepParseException
(String message, int error) Construct a ParseException object with the given message and error codeStringPrepParseException
(String message, int error, String rules, int pos) Construct a ParseException object with the given message and error codeStringPrepParseException
(String message, int error, String rules, int pos, int lineNumber) Construct a ParseException object with the given message and error code -
Method Summary
Methods inherited from class java.text.ParseException
getErrorOffset
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
INVALID_CHAR_FOUND
public static final int INVALID_CHAR_FOUND- See Also:
-
ILLEGAL_CHAR_FOUND
public static final int ILLEGAL_CHAR_FOUND- See Also:
-
PROHIBITED_ERROR
public static final int PROHIBITED_ERROR- See Also:
-
UNASSIGNED_ERROR
public static final int UNASSIGNED_ERROR- See Also:
-
CHECK_BIDI_ERROR
public static final int CHECK_BIDI_ERROR- See Also:
-
STD3_ASCII_RULES_ERROR
public static final int STD3_ASCII_RULES_ERROR- See Also:
-
ACE_PREFIX_ERROR
public static final int ACE_PREFIX_ERROR- See Also:
-
VERIFICATION_ERROR
public static final int VERIFICATION_ERROR- See Also:
-
LABEL_TOO_LONG_ERROR
public static final int LABEL_TOO_LONG_ERROR- See Also:
-
BUFFER_OVERFLOW_ERROR
public static final int BUFFER_OVERFLOW_ERROR- See Also:
-
ZERO_LENGTH_LABEL
public static final int ZERO_LENGTH_LABEL- See Also:
-
DOMAIN_NAME_TOO_LONG_ERROR
public static final int DOMAIN_NAME_TOO_LONG_ERROR- See Also:
-
-
Constructor Details
-
StringPrepParseException
Construct a ParseException object with the given message and error code- Parameters:
message
- A string describing the type of error that occurrederror
- The error that has occurred
-
StringPrepParseException
Construct a ParseException object with the given message and error code- Parameters:
message
- A string describing the type of error that occurrederror
- The error that has occurredrules
- The input rules stringpos
- The position of error in the rules string
-
StringPrepParseException
Construct a ParseException object with the given message and error code- Parameters:
message
- A string describing the type of error that occurrederror
- The error that has occurredrules
- The input rules stringpos
- The position of error in the rules stringlineNumber
- 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.
-
-
Method Details
-
equals
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. -
hashCode
public int hashCode()Mock implementation of hashCode(). This implementation always returns a constant value. When Java assertion is enabled, this method triggers an assertion failure. -
toString
Returns the position of error in the rules string -
getError
public int getError()Returns the error code of this exception. This method is only used for testing to verify the error.- Returns:
- The error code
-