Package com.cloudloop.storage.exceptions

Examples of com.cloudloop.storage.exceptions.DirectoryAlreadyExistsException


    {
  assertObjectBelongsToStore( directory );
 
  if ( directory.existsInStore( ) )
  {
      throw new DirectoryAlreadyExistsException( "Directory '"
        + directory.getPath( ).getAbsolutePath( )
        + "' already exists in store '" + getCloudloopToken( )
        + "'." );
  }
 
View Full Code Here


 
  CloudStoreDirectory dir = getDirectory( file.getPath( )
    .getAbsolutePath( ) );
  if ( dir.existsInStore( ) )
  {
      throw new DirectoryAlreadyExistsException(
        "Cannot upload file to '"
          + file.getPath( ).getAbsolutePath( )
          + "' because a directory already exists there (you cannot have a directory and file with the same name." );
  }
 
View Full Code Here

    .combine(
        new CloudStorePath( newName, true,
    PathUtil.ROOT_DIRECTORY ) ).getAbsolutePath( ) );
  if ( newDir.existsInStore( ) )
  {
      throw new DirectoryAlreadyExistsException( "Directory '"
        + directory.getPath( ).getAbsolutePath( )
        + "' already exists in the store." );
  }
 
  sendRenameDirectoryRequest( directory, newName );
View Full Code Here

TOP

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

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.