public class StringPrepParseException
extends java.text.ParseException
Modifier and Type | Field and Description |
---|---|
static int |
ACE_PREFIX_ERROR |
static int |
BUFFER_OVERFLOW_ERROR |
static int |
CHECK_BIDI_ERROR |
static int |
DOMAIN_NAME_TOO_LONG_ERROR |
static int |
ILLEGAL_CHAR_FOUND |
static int |
INVALID_CHAR_FOUND |
static int |
LABEL_TOO_LONG_ERROR |
static int |
PROHIBITED_ERROR |
static int |
STD3_ASCII_RULES_ERROR |
static int |
UNASSIGNED_ERROR |
static int |
VERIFICATION_ERROR |
static int |
ZERO_LENGTH_LABEL |
Constructor and Description |
---|
StringPrepParseException(java.lang.String message,
int error)
Construct a ParseException object with the given message
and error code
|
StringPrepParseException(java.lang.String message,
int error,
java.lang.String rules,
int pos)
Construct a ParseException object with the given message and
error code
|
StringPrepParseException(java.lang.String message,
int error,
java.lang.String rules,
int pos,
int lineNumber)
Construct a ParseException object with the given message and error code
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Compare this ParseException to another and evaluate if they are equal.
|
int |
getError()
Returns the error code of this exception.
|
int |
hashCode()
Deprecated.
This API is ICU internal only.
|
java.lang.String |
toString()
Returns the position of error in the rules string
|
public static final int INVALID_CHAR_FOUND
public static final int ILLEGAL_CHAR_FOUND
public static final int PROHIBITED_ERROR
public static final int UNASSIGNED_ERROR
public static final int CHECK_BIDI_ERROR
public static final int STD3_ASCII_RULES_ERROR
public static final int ACE_PREFIX_ERROR
public static final int VERIFICATION_ERROR
public static final int LABEL_TOO_LONG_ERROR
public static final int BUFFER_OVERFLOW_ERROR
public static final int ZERO_LENGTH_LABEL
public static final int DOMAIN_NAME_TOO_LONG_ERROR
public StringPrepParseException(java.lang.String message, int error)
message
- A string describing the type of error that occurrederror
- The error that has occurredpublic StringPrepParseException(java.lang.String message, int error, java.lang.String rules, int pos)
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 stringpublic StringPrepParseException(java.lang.String message, int error, java.lang.String rules, int pos, int lineNumber)
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.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- The exception that this object should be compared topublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Throwable
public int getError()
Copyright (c) 2013 IBM Corporation and others.