Path
because the path string contains invalid characters, or
the path string is invalid for other file system specific reasons.
Modifier and Type | Field and Description |
---|---|
private int | index
The index of the input string at which the error occurred or
|
private String | input
The input string. |
pack-priv static final long |
Access | Constructor and Description |
---|---|
public | InvalidPathException(String
the input string input, String a string explaining why the input was rejected reason, int the index at which the error occurred,
or index)-1 if the index is not knownConstructs an instance from the given input string, reason, and error index. |
public | InvalidPathException(String
the input string input, String a string explaining why the input was rejected reason)Constructs an instance from the given input string and reason. |
Modifier and Type | Method and Description |
---|---|
public int | Returns: the error indexReturns an index into the input string of the position at which the
error occurred, or |
public String | |
public String | Returns: a string describing the errorOverrides java. Returns a string describing the error. |
public String |
index | back to summary |
---|---|
private int index The index of the input string at which the error occurred or
|
input | back to summary |
---|---|
private String input The input string. |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID Hides java. |
InvalidPathException | back to summary |
---|---|
public InvalidPathException(String input, String reason, int index) Constructs an instance from the given input string, reason, and error index.
|
InvalidPathException | back to summary |
---|---|
public InvalidPathException(String input, String reason) Constructs an instance from the given input string and reason. The
resulting object will have an error index of
|
getIndex | back to summary |
---|---|
public int getIndex() Returns an index into the input string of the position at which the
error occurred, or
|
getInput | back to summary |
---|---|
public String getInput() Returns the input string.
|
getMessage | back to summary |
---|---|
public String getMessage() Overrides java. Returns a string describing the error. The resulting string
consists of the reason string followed by a colon character
(
|
getReason | back to summary |
---|---|
public String getReason() Returns a string explaining why the input string was rejected.
|