com.ibm.icu.text

Class StringPrepParseException

public class StringPrepParseException extends ParseException

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

Author: Ram Viswanadha

UNKNOWN: ICU 2.8

Field Summary
static intACE_PREFIX_ERROR
static intBUFFER_OVERFLOW_ERROR
static intCHECK_BIDI_ERROR
static intILLEGAL_CHAR_FOUND
static intINVALID_CHAR_FOUND
static intLABEL_TOO_LONG_ERROR
static intPROHIBITED_ERROR
static intSTD3_ASCII_RULES_ERROR
static intUNASSIGNED_ERROR
static intVERIFICATION_ERROR
static intZERO_LENGTH_LABEL
Constructor Summary
StringPrepParseException(String message, int error)
Construct a ParseException object with the given message and error code
StringPrepParseException(String message, int error, String rules, int pos)
Construct a ParseException object with the given message and error code
StringPrepParseException(String message, int error, String rules, int pos, int lineNumber)
Construct a ParseException object with the given message and error code
Method Summary
booleanequals(Object other)
Compare this ParseException to another and evaluate if they are equal.
StringtoString()
Returns the position of error in the rules string

Field Detail

ACE_PREFIX_ERROR

public static final int ACE_PREFIX_ERROR

UNKNOWN: ICU 2.8

BUFFER_OVERFLOW_ERROR

public static final int BUFFER_OVERFLOW_ERROR

UNKNOWN: ICU 2.8

CHECK_BIDI_ERROR

public static final int CHECK_BIDI_ERROR

UNKNOWN: ICU 2.8

ILLEGAL_CHAR_FOUND

public static final int ILLEGAL_CHAR_FOUND

UNKNOWN: ICU 2.8

INVALID_CHAR_FOUND

public static final int INVALID_CHAR_FOUND

UNKNOWN: ICU 2.8

LABEL_TOO_LONG_ERROR

public static final int LABEL_TOO_LONG_ERROR

UNKNOWN: ICU 2.8

PROHIBITED_ERROR

public static final int PROHIBITED_ERROR

UNKNOWN: ICU 2.8

STD3_ASCII_RULES_ERROR

public static final int STD3_ASCII_RULES_ERROR

UNKNOWN: ICU 2.8

UNASSIGNED_ERROR

public static final int UNASSIGNED_ERROR

UNKNOWN: ICU 2.8

VERIFICATION_ERROR

public static final int VERIFICATION_ERROR

UNKNOWN: ICU 2.8

ZERO_LENGTH_LABEL

public static final int ZERO_LENGTH_LABEL

UNKNOWN: ICU 2.2

Constructor Detail

StringPrepParseException

public StringPrepParseException(String message, int error)
Construct a ParseException object with the given message and error code

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

UNKNOWN: ICU 2.8

StringPrepParseException

public StringPrepParseException(String message, int error, String rules, int pos)
Construct a ParseException object with the given message and error code

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

UNKNOWN: ICU 2.8

StringPrepParseException

public StringPrepParseException(String message, int error, String rules, int pos, int lineNumber)
Construct a ParseException object with the given message and error code

Parameters: message A string describing the type of error that occurred error The error that has occurred rules The input rules string pos The position of error in the rules string lineNumber 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.

UNKNOWN: ICU 2.8

Method Detail

equals

public boolean equals(Object other)
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: other The exception that this object should be compared to

Returns: true if the objects are equal, false if unequal

UNKNOWN: ICU 2.8

toString

public String toString()
Returns the position of error in the rules string

Returns: String

UNKNOWN: ICU 2.8

Copyright (c) 2007 IBM Corporation and others.