Skip to content

Commit e85d3b3

Browse files
committed
Revise Watch::execute() docs for possible exceptions
UnexpectedValueException is only relevant for non-cursor aggregations, and UnsupportedException due to a write concern is not relevant for change streams.
1 parent b9b068d commit e85d3b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Operation/Watch.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ public function __construct(Manager $manager, $databaseName, $collectionName, ar
122122
* @see Executable::execute()
123123
* @param Server $server
124124
* @return ChangeStream
125-
* @throws UnexpectedValueException if the command response was malformed
126-
* @throws UnsupportedException if collation, read concern, or write concern is used and unsupported
125+
* @throws UnsupportedException if collation or read concern is used and unsupported
127126
* @throws DriverRuntimeException for other driver errors (e.g. connection errors)
128127
*/
129128
public function execute(Server $server)

0 commit comments

Comments
 (0)