File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 77use React \Stream \ReadableStreamInterface ;
88use React \Stream \WritableStreamInterface ;
99use React \Stream \Util ;
10- use Exception ;
1110use RuntimeException ;
1211use Clue \React \NDJson \Decoder as NDJsonDecoder ;
1312use EdgeTelemetrics \JSON_RPC \Notification ;
1413use EdgeTelemetrics \JSON_RPC \Request ;
1514use EdgeTelemetrics \JSON_RPC \Response ;
1615use EdgeTelemetrics \JSON_RPC \Error ;
16+ use Throwable ;
1717use function array_key_exists ;
1818use function is_array ;
1919
@@ -134,7 +134,7 @@ public function handleData($input)
134134 }
135135 $ this ->emit ('data ' , [$ jsonrpc ]);
136136 }
137- } catch (\ Throwable $ ex ) {
137+ } catch (Throwable $ ex ) {
138138 $ this ->handleError ($ ex );
139139 }
140140 }
@@ -149,10 +149,10 @@ public function handleEnd()
149149 }
150150
151151 /**
152- * @param Exception $error
152+ * @param Throwable $error
153153 * @internal
154154 */
155- public function handleError (Exception $ error )
155+ public function handleError (Throwable $ error )
156156 {
157157 $ this ->emit ('error ' , array ($ error ));
158158 $ this ->close ();
You can’t perform that action at this time.
0 commit comments