| java.lang.Object java.lang.Throwable java.lang.Exception java.net.URISyntaxException
URISyntaxException | public class URISyntaxException extends Exception (Code) | | Represents an exception that occurred during parsing of a URI.
|
Constructor Summary | |
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. |
Method Summary | |
public int | getIndex() Answers the index at which the syntax error was found, or -1 if the index
is unknown/unavailable. | public String | getInput() | 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. | public String | getReason() |
URISyntaxException | public URISyntaxException(String input, String reason, int index)(Code) | | Constructs a URISyntaxException, containing the input that caused the
exception, a description of the problem, and the index at which the error
occurred.
Parameters: input - Parameters: reason - Parameters: index - exception: NullPointerException - if input or reason is null exception: IllegalArgumentException - if index < -1 |
URISyntaxException | public URISyntaxException(String input, String reason)(Code) | | Constructs a URISyntaxException containing the string that caused the
exception and a description of the error.
Parameters: input - Parameters: reason - exception: NullPointerException - if input or reason is null |
getIndex | public int getIndex()(Code) | | Answers the index at which the syntax error was found, or -1 if the index
is unknown/unavailable.
the index of the syntax error |
getInput | public String getInput()(Code) | | Answers the String that contained the syntax error
the String that caused the exception |
getMessage | public String getMessage()(Code) | | 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.
a String containing information about the exception. See Also: java.lang.Throwable.getMessage |
getReason | public String getReason()(Code) | | Answers a String describing the syntax error in the URI string
a String describing the syntax error |
|
|