Serializablepublic class PatternSyntaxException extends IllegalArgumentException
| Constructor | Description |
|---|---|
PatternSyntaxException(String desc,
String regex,
int index) |
Constructs a new instance of this class.
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
getDescription() |
Retrieves the description of the error.
|
int |
getIndex() |
Retrieves the error index.
|
String |
getMessage() |
Returns a multi-line string containing the description of the syntax
error and its index, the erroneous regular-expression pattern, and a
visual indication of the error index within the pattern.
|
String |
getPattern() |
Retrieves the erroneous regular-expression pattern.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic int getIndex()
-1 if the index is not knownpublic String getDescription()
public String getPattern()
public String getMessage()
getMessage in class Throwable Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b155-1