The MongoDB\Driver\Exception\UnexpectedValueException class

(mongodb >= 1.0.0)

Introduction

Thrown when the driver encounters an unexpected value (e.g. during BSON serialization or deserialization).

Class synopsis

classMongoDB\Driver\Exception\UnexpectedValueExceptionextendsUnexpectedValueExceptionimplementsMongoDB\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