com.ibm.icu.text
Class StringPrepParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.text.ParseException
              extended by com.ibm.icu.text.StringPrepParseException
All Implemented Interfaces:
Serializable

Deprecated. This is a draft API and might change in a future release of ICU.

public class StringPrepParseException
extends ParseException

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

Author:
Ram Viswanadha
See Also:
Serialized Form

Field Summary
static int ACE_PREFIX_ERROR
          Deprecated. This is a draft API and might change in a future release of ICU.
static int BUFFER_OVERFLOW_ERROR
          Deprecated. This is a draft API and might change in a future release of ICU.
static int CHECK_BIDI_ERROR
          Deprecated. This is a draft API and might change in a future release of ICU.
static int ILLEGAL_CHAR_FOUND
          Deprecated. This is a draft API and might change in a future release of ICU.
static int INVALID_CHAR_FOUND
          Deprecated. This is a draft API and might change in a future release of ICU.
static int LABEL_TOO_LONG_ERROR
          Deprecated. This is a draft API and might change in a future release of ICU.
static int PROHIBITED_ERROR
          Deprecated. This is a draft API and might change in a future release of ICU.
static int STD3_ASCII_RULES_ERROR
          Deprecated. This is a draft API and might change in a future release of ICU.
static int UNASSIGNED_ERROR
          Deprecated. This is a draft API and might change in a future release of ICU.
static int VERIFICATION_ERROR
          Deprecated. This is a draft API and might change in a future release of ICU.
 
Constructor Summary
StringPrepParseException(String message, int error)
          Deprecated. This is a draft API and might change in a future release of ICU.
StringPrepParseException(String message, int error, String rules, int pos)
          Deprecated. This is a draft API and might change in a future release of ICU.
StringPrepParseException(String message, int error, String rules, int pos, int lineNumber)
          Deprecated. This is a draft API and might change in a future release of ICU.
 
Method Summary
 boolean equals(Object other)
          Deprecated. This is a draft API and might change in a future release of ICU.
 String toString()
          Deprecated. This is a draft API and might change in a future release of ICU.
 
Methods inherited from class java.text.ParseException
getErrorOffset
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INVALID_CHAR_FOUND

public static final int INVALID_CHAR_FOUND
Deprecated. This is a draft API and might change in a future release of ICU.
See Also:
Constant Field Values

ILLEGAL_CHAR_FOUND

public static final int ILLEGAL_CHAR_FOUND
Deprecated. This is a draft API and might change in a future release of ICU.
See Also:
Constant Field Values

PROHIBITED_ERROR

public static final int PROHIBITED_ERROR
Deprecated. This is a draft API and might change in a future release of ICU.
See Also:
Constant Field Values

UNASSIGNED_ERROR

public static final int UNASSIGNED_ERROR
Deprecated. This is a draft API and might change in a future release of ICU.
See Also:
Constant Field Values

CHECK_BIDI_ERROR

public static final int CHECK_BIDI_ERROR
Deprecated. This is a draft API and might change in a future release of ICU.
See Also:
Constant Field Values

STD3_ASCII_RULES_ERROR

public static final int STD3_ASCII_RULES_ERROR
Deprecated. This is a draft API and might change in a future release of ICU.
See Also:
Constant Field Values

ACE_PREFIX_ERROR

public static final int ACE_PREFIX_ERROR
Deprecated. This is a draft API and might change in a future release of ICU.
See Also:
Constant Field Values

VERIFICATION_ERROR

public static final int VERIFICATION_ERROR
Deprecated. This is a draft API and might change in a future release of ICU.
See Also:
Constant Field Values

LABEL_TOO_LONG_ERROR

public static final int LABEL_TOO_LONG_ERROR
Deprecated. This is a draft API and might change in a future release of ICU.
See Also:
Constant Field Values

BUFFER_OVERFLOW_ERROR

public static final int BUFFER_OVERFLOW_ERROR
Deprecated. This is a draft API and might change in a future release of ICU.
See Also:
Constant Field Values
Constructor Detail

StringPrepParseException

public StringPrepParseException(String message,
                                int error)
Deprecated. This is a draft API and might change in a future release of ICU.

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

StringPrepParseException

public StringPrepParseException(String message,
                                int error,
                                String rules,
                                int pos)
Deprecated. This is a draft API and might change in a future release of ICU.

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

StringPrepParseException

public StringPrepParseException(String message,
                                int error,
                                String rules,
                                int pos,
                                int lineNumber)
Deprecated. This is a draft API and might change in a future release of ICU.

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.
Method Detail

equals

public boolean equals(Object other)
Deprecated. This is a draft API and might change in a future release of ICU.

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.

Overrides:
equals in class Object
Parameters:
other - The exception that this object should be compared to
Returns:
true if the objects are equal, false if unequal

toString

public String toString()
Deprecated. This is a draft API and might change in a future release of ICU.

Returns the position of error in the rules string

Overrides:
toString in class Throwable
Returns:
String


Copyright (c) 2004 IBM Corporation and others.