Overview

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Identity
      • Log
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Resource
    • LoadBalancer
      • Resource
    • ObjectStore
      • Constants
      • Exception
      • Resource
      • Upload
    • Orchestration
    • Queues
      • Exception
      • Resource
    • Volume
      • Resource
  • PHP

Exceptions

  • BulkOperationException
  • StreamException
  • UploadException
  • Overview
  • Namespace
  • Class
  • Tree
  • Download
 1: <?php
 2: /**
 3:  * PHP OpenCloud library.
 4:  * 
 5:  * @copyright 2013 Rackspace Hosting, Inc. See LICENSE for information.
 6:  * @license   https://www.apache.org/licenses/LICENSE-2.0
 7:  * @author    Jamie Hannaford <jamie.hannaford@rackspace.com>
 8:  */
 9: 
10: namespace OpenCloud\ObjectStore\Exception;
11: 
12: class UploadException extends \Exception
13: {
14:     protected $state;
15: 
16:     public function __construct($state, \Exception $exception = null)
17:     {
18:         parent::__construct(
19:             'An error was encountered while performing an upload: ' . $exception->getMessage(),
20:             0,
21:             $exception
22:         );
23: 
24:         $this->state = $state;
25:     }
26: 
27:     public function getState()
28:     {
29:         return $this->state;
30:     }
31: }
PHP OpenCloud API API documentation generated by ApiGen 2.8.0