File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -342,10 +342,14 @@ public static function getState($key)
342342 /**
343343 * Set a callback to be executed when an error occurs.
344344 *
345+ * The callback receives the error as the first and only parameter. The return value of the callback gets ignored.
346+ * If it can't handle the error, it MUST throw the error. Errors thrown by the callback or during its invocation
347+ * MUST be thrown into the `run` loop and stop the driver.
348+ *
345349 * Subsequent calls to this method will overwrite the previous handler.
346350 *
347- * @param callable(\Throwable|\Exception $error)|null $callback The callback to execute; null will clear the current
348- * handler.
351+ * @param callable(\Throwable|\Exception $error)|null $callback The callback to execute. ` null` will clear the
352+ * current handler.
349353 *
350354 * @return void
351355 */
Original file line number Diff line number Diff line change @@ -227,6 +227,10 @@ final public function getState($key)
227227 /**
228228 * Set a callback to be executed when an error occurs.
229229 *
230+ * The callback receives the error as the first and only parameter. The return value of the callback gets ignored.
231+ * If it can't handle the error, it MUST throw the error. Errors thrown by the callback or during its invocation
232+ * MUST be thrown into the `run` loop and stop the driver.
233+ *
230234 * Subsequent calls to this method will overwrite the previous handler.
231235 *
232236 * @param callable(\Throwable|\Exception $error)|null $callback The callback to execute. `null` will clear the
You can’t perform that action at this time.
0 commit comments