Movatterモバイル変換


[0]ホーム

URL:


PHP 8.5.0 Alpha 2 available for testing
    MongoDB\Driver\Exception\BulkWriteCommandException::getErrorReply »
    « MongoDB\Driver\Exception\BulkWriteException::getWriteResult

    The MongoDB\Driver\Exception\BulkWriteCommandException class

    (mongodb >=2.1.0)

    Introduction

    Exception thrown due to failed execution of aMongoDB\Driver\BulkWriteCommand. The methods of this class provide more details of the error that occurred, including the error reply and partial results from the bulk write.

    Class synopsis

    classMongoDB\Driver\Exception\BulkWriteCommandExceptionextendsMongoDB\Driver\Exception\ServerExceptionimplementsMongoDB\Driver\Exception\Exception {
    /* Properties */
    /* Inherited properties */
    protectedstring$message = "";
    privatestring$string = "";
    protectedint$code;
    protectedstring$file = "";
    protectedint$line;
    privatearray$trace = [];
    private?Throwable$previous = null;
    /* Methods */
    finalpublicgetWriteErrors():array
    /* Inherited methods */
    finalpublicException::getCode():int
    finalpublicException::getLine():int
    }

    Properties

    errorReply

    Any top-level error that occurred when attempting to communicate with the server or execute the bulk write. This value may benull if the exception was thrown due to errors occurring on individual writes.

    partialResult

    AMongoDB\Driver\BulkWriteCommandResult reporting the result of any successful operations that were performed before the error was encountered. This value may benull if it cannot be determined that at least one write was successfully performed (and acknowledged).

    writeConcernErrors

    An array of anyMongoDB\Driver\WriteConcernErrors that occurred while executing the bulk write. This list may have multiple items if more than one server command was required to execute the bulk write.

    writeErrors

    An array of anyMongoDB\Driver\WriteErrors that occurred during the execution of individual write operations. Array keys will correspond to the index of the write operation fromMongoDB\Driver\BulkWriteCommand. This map will contain at most one entry if the bulk write was ordered.

    Table of Contents

    Found A Problem?

    Learn How To Improve This PageSubmit a Pull RequestReport a Bug
    add a note

    User Contributed Notes

    There are no user contributed notes for this page.
    To Top
    and to navigate •Enter to select •Esc to close
    PressEnter without selection to search using Google

    [8]ページ先頭

    ©2009-2025 Movatter.jp