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 7
7
use React \Stream \ReadableStreamInterface ;
8
8
use React \Stream \WritableStreamInterface ;
9
9
use React \Stream \Util ;
10
- use Exception ;
11
10
use RuntimeException ;
12
11
use Clue \React \NDJson \Decoder as NDJsonDecoder ;
13
12
use EdgeTelemetrics \JSON_RPC \Notification ;
14
13
use EdgeTelemetrics \JSON_RPC \Request ;
15
14
use EdgeTelemetrics \JSON_RPC \Response ;
16
15
use EdgeTelemetrics \JSON_RPC \Error ;
16
+ use Throwable ;
17
17
use function array_key_exists ;
18
18
use function is_array ;
19
19
@@ -134,7 +134,7 @@ public function handleData($input)
134
134
}
135
135
$ this ->emit ('data ' , [$ jsonrpc ]);
136
136
}
137
- } catch (\ Throwable $ ex ) {
137
+ } catch (Throwable $ ex ) {
138
138
$ this ->handleError ($ ex );
139
139
}
140
140
}
@@ -149,10 +149,10 @@ public function handleEnd()
149
149
}
150
150
151
151
/**
152
- * @param Exception $error
152
+ * @param Throwable $error
153
153
* @internal
154
154
*/
155
- public function handleError (Exception $ error )
155
+ public function handleError (Throwable $ error )
156
156
{
157
157
$ this ->emit ('error ' , array ($ error ));
158
158
$ this ->close ();
You can’t perform that action at this time.
0 commit comments