Skip to content

Commit cd8fdca

Browse files
committed
Add wrap() method to WebRequestException
1 parent bb5baf8 commit cd8fdca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Exceptions/ExceptionWithContext.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace WhoopsStackdriver\Exceptions;
44

5+
use Throwable;
6+
57
interface ExceptionWithContext
68
{
79
/** @return string */
@@ -12,4 +14,10 @@ public function getServiceVersion() : string;
1214

1315
/** @return array */
1416
public function getContext() : array;
17+
18+
/**
19+
* @param Throwable $throwable
20+
* @return static
21+
*/
22+
public static function wrap(Throwable $throwable) : self;
1523
}

0 commit comments

Comments
 (0)