|
NIO2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.classpath.icedtea.java.nio.file.InvalidPathException
public class InvalidPathException
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 Summary | |
|---|---|
InvalidPathException(java.lang.String input,
java.lang.String reason)
Constructs an instance from the given input string and reason. |
|
InvalidPathException(java.lang.String input,
java.lang.String reason,
int index)
Constructs an instance from the given input string, reason, and error index. |
|
| Method Summary | |
|---|---|
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. |
java.lang.String |
getInput()
Returns the input string. |
java.lang.String |
getMessage()
Returns a string describing the error. |
java.lang.String |
getReason()
Returns a string explaining why the input string was rejected. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, 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(java.lang.String input,
java.lang.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 known
java.lang.NullPointerException - If either the input or reason strings are null
java.lang.IllegalArgumentException - If the error index is less than -1
public InvalidPathException(java.lang.String input,
java.lang.String reason)
input - The input stringreason - A string explaining why the input was rejected
java.lang.NullPointerException - If either the input or reason strings are null| Method Detail |
|---|
public java.lang.String getInput()
public java.lang.String getReason()
public int getIndex()
public java.lang.String getMessage()
getMessage in class java.lang.Throwable
|
NIO2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2010 Sun Microsystems, Inc. All rights reserved. Use is subject to the terms of the GNU General Public License.