MongoDB\Driver\Exception\CommandException 클래스

(mongodb >= 1.5.0)


소개

명령이 실패하면 throw됩니다.


클래스 개요

                  
class MongoDB\Driver\Exception\CommandException extends MongoDB\Driver\Exception\ServerException implements MongoDB\Driver\Exception\Exception {

  /* Properties */
  protected object $resultDocument;
  /* Inherited properties */
  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;
  /* Methods */
  final public getResultDocument(): object
  /* Inherited methods */
  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
}
                  
                

Properties

resultDocument
실패한 명령과 관련된 결과 문서입니다.

목차