| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public exception URISyntaxException extends Exception
Checked exception thrown to indicate that a string could not be parsed as a URI reference.
Constructor Summary | |
---|---|
URISyntaxException(String input, String reason) Constructs an instance from the given input string and reason. |
|
URISyntaxException(String input, String reason, int index) Constructs an instance from the given input string, reason, and error index. |
Method Summary | |
---|---|
int |
getIndex() Returns an index into the input string of the position at which the parse error occurred, or -1 if this position is not known. |
String |
getInput() Returns the input string. |
String |
Returns a string describing the parse error. |
String |
Returns a string explaining why the input string could not be parsed. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URISyntaxException(String input, String reason)
input
- The input stringreason
- A string explaining why the input could not be parsedpublic URISyntaxException(String input, String reason, int index)
input
- The input stringreason
- A string explaining why the input could not be parsedindex
- The index at which the parse error occurred,
or -1 if the index is not knownMethod Detail |
---|
public int getIndex()
public String getInput()
public String getMessage()
getMessage
in class Throwable
public String getReason()
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |