Ejemplo n.º 1
0
 public function __construct($uri, stdClass $status)
 {
     parent::__construct("No document at {$uri}. CouchDB says: {$status->reason}", self::CODE_DOCUMENT_NOT_FOUND);
     $this->error = $status->error;
 }
Ejemplo n.º 2
0
 public function __construct(stdClass $status)
 {
     parent::__construct($status->reason, self::CODE_DB_MISSING);
     $this->error = $status->error;
 }
Ejemplo n.º 3
0
 public function __construct($uri, stdClass $status)
 {
     parent::__construct("Update conflict at {$uri}. CouchDB says: {$status->reason}", self::CODE_DOCUMENT_UPDATE_CONFLICT);
     $this->error = $status->error;
 }