String path )
{
switch ( isValidPathElement( pathElement, nodeType ) )
{
case EMPTY_NODE:
throw new InvalidPathException(
"Path, "
+ path
+ ", contains an empty node. Cannot have a sequence two \""
+ PATH_SEPARATOR + "\" characters." );
case INVALID_SEQUENCE:
throw new InvalidPathException(
"Invalid sequence of characters, \"...\" in path "
+ path + "." );
case ILLEGAL_PATH_CHARS:
throw new InvalidPathException(
"One or more illegal characters found in path, " + path
+ "." );
case ILLEGAL_FILE_CHARS:
throw new InvalidPathException(
"Invalid filename character(s) found in path, " + path
+ "." );
case NO_FAILURE:
return;
}