Клас MongoDB\Driver\Exception\WriteException

(mongodb >= 1.0.0)

Вступ

Базовий клас для винятків, спричинених невдалою операцією запису. Цей виняток містить об'єкт MongoDB\Driver\WriteResult

Огляд класів



    
    
     
      abstract
      class MongoDB\Driver\Exception\WriteException
     

     
      extends
       MongoDB\Driver\Exception\ServerException
     

     implements 
       MongoDB\Driver\Exception\Exception {
    
    /* Свойства */
    
     protected
     MongoDB\Driver\WriteResult
      $writeResult;


    /* Наследуемые свойства */
    
    protected
     ?array
      $errorLabels;

    
    protected
      string
       $message = "";
private
      string
       $string = "";
protected
      int
       $code;
protected
      string
       $file = "";
protected
      int
       $line;
private
      array
       $trace = [];
private
      ?Throwable
       $previous = null;


    /* Методы */
    
   final public getWriteResult(): MongoDB\Driver\WriteResult


    /* Наследуемые методы */
    
    final public MongoDB\Driver\Exception\RuntimeException::hasErrorLabel(string $errorLabel): bool

    
    final public Exception::getMessage(): string
final public Exception::getPrevious(): ?Throwable
final public Exception::getCode(): int
final public Exception::getFile(): string
final public Exception::getLine(): int
final public Exception::getTrace(): array
final public Exception::getTraceAsString(): string
public Exception::__toString(): string
private Exception::__clone(): void


   }

Властивості

writeResult

Об'єкт MongoDB\Driver\WriteResult, пов'язаний із невдалою операцією запису.

список змін

ВерсияОпис
PECL mongodb 1.5.0
Тепер клас успадковується від MongoDB\Driver\Exception\ServerException замість MongoDB\Driver\Exception\RuntimeException

Зміст