|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.net.URISyntaxException
Untamed: Checked exception thrown to indicate that a string could not be parsed as a URI reference.
URI
,
Serialized FormField Summary | |
private int |
index
|
private String |
input
|
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary | |
URISyntaxException(String input,
String reason)
Enabled: Constructs an instance from the given input string and reason. |
|
URISyntaxException(String input,
String reason,
int index)
Enabled: Constructs an instance from the given input string, reason, and error index. |
Method Summary | |
int |
getIndex()
Enabled: 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()
Enabled: Returns the input string. |
String |
getMessage()
Enabled: Returns a string describing the parse error. |
String |
getReason()
Enabled: Returns a string explaining why the input string could not be parsed. |
Methods inherited from class java.lang.Throwable |
backtrace, eStack, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, javaStack, leaf, printStackTrace, printStackTrace, printStackTrace, printThrowableOn, setStackTrace, toString, unwrap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private String input
private int index
Constructor Detail |
public 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 known
NullPointerException
- If either the input or reason strings are null
IllegalArgumentException
- If the error index is less than -1public URISyntaxException(String input, String reason)
input
- The input stringreason
- A string explaining why the input could not be parsed
NullPointerException
- If either the input or reason strings are nullMethod Detail |
public String getInput()
public String getReason()
public int getIndex()
public String getMessage()
getMessage
in class Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |