|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.net.URISyntaxException
public class URISyntaxException
This exception is thrown when a String cannot be parsed as a URI.
URI
,
Serialized FormConstructor Summary | |
---|---|
URISyntaxException(String input,
String msg)
Create an exception from the invalid string, with the index set to -1. |
|
URISyntaxException(String input,
String msg,
int index)
Create an exception from the invalid string, with the index of the point of failure. |
Method Summary | |
---|---|
int |
getIndex()
Returns the index of the failure, or -1. |
String |
getInput()
Returns the bad input string. |
String |
getMessage()
Returns a message describing the parse error, as if by getReason() + (getIndex() >= 0 ? |
String |
getReason()
Returns the reason for the failure. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public URISyntaxException(String input, String msg)
input
- the bad URImsg
- the descriptive error message
NullPointerException
- if input or msg are nullpublic URISyntaxException(String input, String msg, int index)
input
- the bad URImsg
- the descriptive error messageindex
- the index of the parse error, or -1
NullPointerException
- if input or msg are null
IllegalArgumentException
- if index < -1Method Detail |
---|
public String getInput()
public String getReason()
public int getIndex()
public String getMessage()
getReason() + (getIndex() >= 0 ? " at index " + getIndex() : "")
+ ": " + getInput()
.
getMessage
in class Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |