java.lang.Object | |||
↳ | java.lang.Throwable | ||
↳ | java.lang.Exception | ||
↳ | java.net.URISyntaxException |
A URISyntaxException
will be thrown if some information could not be parsed
while creating a URI.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
URISyntaxException instance containing the
string that caused the exception, a description of the problem and the
index at which the error occurred.
| |||||||||||
Constructs a new
URISyntaxException instance containing the
string that caused the exception and a description of the problem.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the index at which the syntax error was found or
-1 if the
index is unknown/unavailable.
| |||||||||||
Gets the initial string that contains an invalid syntax.
| |||||||||||
Gets a description of the exception, including the reason, the string
that caused the syntax error and the position of the syntax error if
available.
| |||||||||||
Gets a description of the syntax error.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
|
Constructs a new URISyntaxException
instance containing the
string that caused the exception, a description of the problem and the
index at which the error occurred.
input | the string that caused the exception. |
---|---|
reason | the reason why the exception occurred. |
index | the position where the exception occurred. |
NullPointerException | if one of the arguments input or reason is
null . |
---|---|
IllegalArgumentException | if the value for index is lesser than -1 .
|
Constructs a new URISyntaxException
instance containing the
string that caused the exception and a description of the problem.
input | the string that caused the exception. |
---|---|
reason | the reason why the exception occurred. |
NullPointerException | if one of the arguments input or reason is
null .
|
---|
Gets the index at which the syntax error was found or -1
if the
index is unknown/unavailable.
Gets the initial string that contains an invalid syntax.
Gets a description of the exception, including the reason, the string that caused the syntax error and the position of the syntax error if available.
Gets a description of the syntax error.