Package com.cloudloop.adapter.exceptions

Examples of com.cloudloop.adapter.exceptions.ProviderRequestException


    )
    );
 
  if ( !localDir.renameTo( targetDir ) )
  {
      throw new ProviderRequestException(
        "Could not rename directory '"
        + directory.getPath( ).getAbsolutePath( )
        + "' to '" + newName + "'." );
  }
    }
View Full Code Here


    )
    );
 
  if ( !localFile.renameTo( targetFile ) )
  {
      throw new ProviderRequestException(
        "Could not rename file '"
        + file.getPath( ).getAbsolutePath( )
        + "' to '" + newName + "'." );
  }
    }
View Full Code Here

  {
      // Deal with S3 error stream.
      InputStream in = httpConn.getErrorStream( );
      if ( in == null )
      {
    throw new ProviderRequestException(
      "An exception ocurred while performing S3 request and no error message was given. The response code was "
        + statusCode
        + ". See http://docs.amazonwebservices.com/AmazonS3/latest/index.html?ErrorCodeList.html for more information.",
      String.valueOf( statusCode ) );
      }
      String errorStr = getS3ErrorCode( in );
      throw new ProviderRequestException( errorStr );
  }
  setResponseHeaders( httpConn.getHeaderFields( ) );
  return httpConn.getInputStream( );
    }
View Full Code Here

        new String[ ]
        { path.getAbsolutePath( ) } );
  }
  catch ( NirvanixException e )
  {
      throw new ProviderRequestException( e );
  }
  catch ( SDKException e )
  {
      throw new ProviderRequestException( e );
  }
  catch ( IOException e )
  {
      throw new ProviderRequestException( e );
  }
    }
View Full Code Here

      }
      return output.toArray( new CloudStoreObject[ output.size( ) ] );
  }
  catch ( NirvanixException e )
  {
      throw new ProviderRequestException( e );
  }
  catch ( SDKException e )
  {
      throw new ProviderRequestException( e );
  }
  catch ( IOException e )
  {
      throw new ProviderRequestException( e );
  }
    }
View Full Code Here

        new String[ ]
        { path.getAbsolutePath( ) } );
  }
  catch ( NirvanixException e )
  {
      throw new ProviderRequestException( e );
  }
  catch ( SDKException e )
  {
      throw new ProviderRequestException( e );
  }
  catch ( IOException e )
  {
      throw new ProviderRequestException( e );
  }
    }
View Full Code Here

        );
      uploader.upload( );
  }
  catch ( NirvanixException e )
  {
      throw new ProviderRequestException( e );
  }
    }
View Full Code Here

        }
        catch ( InterruptedException ex )
        { /* do nothing */
        }
    }
    throw new ProviderRequestException( e );
      }
      catch ( SDKException e )
      {
    throw new ProviderRequestException( e );
      }
      catch ( IOException e )
      {
    throw new ProviderRequestException( e );
      }
  }
    }
View Full Code Here

  {
      _session.copyFolders( fromToPaths );
  }
  catch ( NirvanixException e )
  {
      throw new ProviderRequestException( e );
  }
  catch ( SDKException e )
  {
      throw new ProviderRequestException( e );
  }
  catch ( IOException e )
  {
      throw new ProviderRequestException( e );
  }
    }
View Full Code Here

      return _session.checkIfItemExists( object.getPath( )
        .getAbsolutePath( ), object.getPath( ).isDirectory( ) );
  }
  catch ( NirvanixException e )
  {
      throw new ProviderRequestException( e );
  }
  catch ( SDKException e )
  {
      throw new ProviderRequestException( e );
  }
  catch ( IOException e )
  {
      throw new ProviderRequestException( e );
  }
    }
View Full Code Here

TOP

Related Classes of com.cloudloop.adapter.exceptions.ProviderRequestException

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.