The MongoDB\Driver\Exception\LogicException class

(mongodb >= 1.0.0)

Introduction

Thrown when the driver is incorrectly used (e.g. rewinding a cursor).

Class synopsis

classMongoDB\Driver\Exception\LogicExceptionextendsLogicExceptionimplementsMongoDB\Driver\Exception\Exception {
protectedstring$message = "";
privatestring$string = "";
protectedint$code;
protectedstring$file = "";
protectedint$line;
privatearray$trace = [];
private?Throwable$previous = null;
finalpublicException::getCode(): int
finalpublicException::getLine(): int
}
To Top