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; }
public function __construct(stdClass $status) { parent::__construct($status->reason, self::CODE_DB_MISSING); $this->error = $status->error; }
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; }