| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private int | line
The line on which the error occurred. |
| private static final int | |
| private StringBuffer | postContext
Textual context after the error. |
| private StringBuffer | preContext
Textual context before the error. |
| public static final int | |
| pack-priv static final long | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | StringPrepParseException(String
A string describing the type of error that occurred message, int The error that has occurred error)Construct a ParseException object with the given message and error code |
| public | StringPrepParseException(String
A string describing the type of error that occurred message, int The error that has occurred error, String The input rules string rules, int The position of error in the rules string pos)Construct a ParseException object with the given message and error code |
| public | StringPrepParseException(String
A string describing the type of error that occurred message, int The error that has occurred error, String The input rules string rules, int The position of error in the rules string pos, 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. lineNumber)Construct a ParseException object with the given message and error code |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the objects are equal, false if unequalThe exception that this object should be compared to other)Overrides java. |
| public int | |
| public int | Returns: a hash code value for this object.Overrides java. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public String | Returns: StringOverrides java. |
| ACE_PREFIX_ERROR | back to summary |
|---|---|
public static final int ACE_PREFIX_ERROR
| |
| BUFFER_OVERFLOW_ERROR | back to summary |
|---|---|
public static final int BUFFER_OVERFLOW_ERROR
| |
| CHECK_BIDI_ERROR | back to summary |
|---|---|
public static final int CHECK_BIDI_ERROR
| |
| DOMAIN_NAME_TOO_LONG_ERROR | back to summary |
|---|---|
public static final int DOMAIN_NAME_TOO_LONG_ERROR
| |
| error | back to summary |
|---|---|
| private int error | |
| ILLEGAL_CHAR_FOUND | back to summary |
|---|---|
public static final int ILLEGAL_CHAR_FOUND
| |
| INVALID_CHAR_FOUND | back to summary |
|---|---|
public static final int INVALID_CHAR_FOUND
| |
| LABEL_TOO_LONG_ERROR | back to summary |
|---|---|
public static final int LABEL_TOO_LONG_ERROR
| |
| line | back to summary |
|---|---|
| private int line The line on which the error 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. | |
| PARSE_CONTEXT_LEN | back to summary |
|---|---|
| private static final int PARSE_CONTEXT_LEN | |
| postContext | back to summary |
|---|---|
| private StringBuffer postContext Textual context after the error. Null-terminated. May be the empty string if not implemented by parser. | |
| preContext | back to summary |
|---|---|
| private StringBuffer preContext Textual context before the error. Null-terminated. May be the empty string if not implemented by parser. | |
| PROHIBITED_ERROR | back to summary |
|---|---|
public static final int PROHIBITED_ERROR
| |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| STD3_ASCII_RULES_ERROR | back to summary |
|---|---|
public static final int STD3_ASCII_RULES_ERROR
| |
| UNASSIGNED_ERROR | back to summary |
|---|---|
public static final int UNASSIGNED_ERROR
| |
| VERIFICATION_ERROR | back to summary |
|---|---|
public static final int VERIFICATION_ERROR
| |
| ZERO_LENGTH_LABEL | back to summary |
|---|---|
public static final int ZERO_LENGTH_LABEL
| |
| StringPrepParseException | back to summary |
|---|---|
| public StringPrepParseException(String message, int error) Construct a ParseException object with the given message and error code | |
| StringPrepParseException | back to summary |
|---|---|
| public StringPrepParseException(String message, int error, String rules, int pos) Construct a ParseException object with the given message and error code | |
| StringPrepParseException | back to summary |
|---|---|
| public StringPrepParseException(String message, int error, String rules, int pos, int lineNumber) Construct a ParseException object with the given message and error code
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. 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. | |
| getError | back to summary |
|---|---|
| public int getError() Returns the error code of this exception. This method is only used for testing to verify the error.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Mock implementation of hashCode(). This implementation always returns a constant value. When Java assertion is enabled, this method triggers an assertion failure. | |
| setContext | back to summary |
|---|---|
| private void setContext(String str, int pos) | |
| setPostContext | back to summary |
|---|---|
| private void setPostContext(String str, int pos) | |
| setPostContext | back to summary |
|---|---|
| private void setPostContext(char[] str, int pos) | |
| setPreContext | back to summary |
|---|---|
| private void setPreContext(String str, int pos) | |
| setPreContext | back to summary |
|---|---|
| private void setPreContext(char[] str, int pos) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the position of error in the rules string | |