Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException java.lang.IllegalArgumentException java.nio.file.InvalidPathException
public class InvalidPathException extends IllegalArgumentException
Unchecked exception thrown when path string cannot be converted into a
Path
because the path string contains invalid characters, or
the path string is invalid for other file system specific reasons.
Constructor and Description |
---|
InvalidPathException(String input,
String reason)
Constructs an instance from the given input string and reason. |
InvalidPathException(String input,
String reason,
int index)
Constructs an instance from the given input string, reason, and error index. |
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Returns an index into the input string of the position at which the error occurred, or -1 if this position is not known. |
String |
getInput()
Returns the input string. |
String |
getMessage()
Returns a string describing the error. |
String |
getReason()
Returns a string explaining why the input string was rejected. |
Methods inherited from class java.lang.Throwable |
---|
addSuppressedException, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressedExceptions, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InvalidPathException(String input, String reason, int index)
input
- the input stringreason
- a string explaining why the input was rejectedindex
- the index at which the error occurred,
or -1 if the index is not knownNullPointerException
- if either the input or reason strings are nullIllegalArgumentException
- if the error index is less than -1public InvalidPathException(String input, String reason)
input
- the input stringreason
- a string explaining why the input was rejectedNullPointerException
- if either the input or reason strings are nullMethod Detail |
---|
public String getInput()
public String getReason()
public int getIndex()
public String getMessage()
getMessage
in class Throwable
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.