java.net
Class URISyntaxException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.net.URISyntaxException
public class
URISyntaxExceptionextends
Exception This exception is thrown when a String cannot be parsed as a URI.
Since:Author:- Eric Blake <ebb9@email.byu.edu>
See Also:
URISyntaxException
public URISyntaxException(java.lang.String input, java.lang.String msg)
Create an exception from the invalid string, with the index set to -1.
Parameters:
Throws:
URISyntaxException
public URISyntaxException(java.lang.String input, java.lang.String msg, int index)
Create an exception from the invalid string, with the index of the
point of failure.
Parameters:
Throws:
getIndex
public int getIndex()
Returns the index of the failure, or -1.
Returns:
getInput
public String getInput()
Returns the bad input string.
Returns:
- the bad URI, guaranteed non-null
getMessage
public String getMessage()
Returns a message describing the parse error, as if by
getReason() + (getIndex() >= 0 ? " at index " + getIndex() : "")
+ ": " + getInput()
.
Returns:
getReason
public String getReason()
Returns the reason for the failure.
Returns:
- the message, guaranteed non-null