Package com.cloudloop.storage.exceptions

Examples of com.cloudloop.storage.exceptions.InvalidPathException


             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;
  }
View Full Code Here


    {
  CloudStorePath cloudPath = new CloudStorePath( path, true,
    PathUtil.ROOT_DIRECTORY );
  if ( !cloudPath.isDirectory( ) )
  {
      throw new InvalidPathException( "Path, "
        + cloudPath.getAbsolutePath( )
        + " does not represent a directory location." );
  }
 
  // TODO: fill in directory header info
View Full Code Here

    public CloudStoreFile getFile( String path )
    {
  CloudStorePath cloudPath = new CloudStorePath( path );
  if ( cloudPath.isDirectory( ) )
  {
      throw new InvalidPathException(
        "Path represents a directory location." );
  }
 
  return new CloudStoreFile( this, cloudPath );
    }
View Full Code Here

 
  boolean isValid = PathUtil.isValidPathElement( newName,
                   PathNodeType.DIRECTORY ) == PathValidationFailureType.NO_FAILURE;
  if ( !isValid )
  {
      throw new InvalidPathException( "Invalid new directory name, '"
        + newName + "'." );
  }
 
  CloudStoreDirectory newDir = getDirectory( directory
    .getParentDirectory( ).getPath( )
View Full Code Here

 
  boolean isValid = PathUtil.isValidPathElement( newName,
                   PathNodeType.FILE ) == PathValidationFailureType.NO_FAILURE;
  if ( !isValid )
  {
      throw new InvalidPathException( "Invalid new file name, '"
        + newName + "'." );
  }
 
  CloudStoreFile newFile = getFile( file.getParentDirectory( ).getPath( )
    .combine(
View Full Code Here

TOP

Related Classes of com.cloudloop.storage.exceptions.InvalidPathException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.