java.net.URISyntaxException
Represents an exception that occurred during parsing of a URI.
Summary
Public Constructors
Public Methods
fillInStackTrace,
getCause,
getLocalizedMessage,
getMessage,
getStackTrace,
initCause,
printStackTrace,
printStackTrace,
printStackTrace,
setStackTrace,
toString
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
URISyntaxException(String input, String reason, int index)
Constructs a URISyntaxException, containing the input that caused the
exception, a description of the problem, and the index at which the error
occurred.
public
URISyntaxException(String input, String reason)
Constructs a URISyntaxException containing the string that caused the
exception and a description of the error.
Public Methods
public
int
getIndex()
Returns the index at which the syntax error was found, or -1 if the index
is unknown/unavailable.
Returns
- the index of the syntax error
public
String
getInput()
Returns the String that contained the syntax error
Returns
- the String that caused the exception
public
String
getMessage()
Returns a description of the exception, including the reason, the string
that had the syntax error, and the index of the syntax error if
available.
Returns
- a String containing information about the exception.
public
String
getReason()
Returns a String describing the syntax error in the URI string
Returns
- a String describing the syntax error