| 1 | <?php |
| 2 | |
| 3 | namespace Illuminate\Contracts\Database; |
| 4 | |
| 5 | use Throwable; |
| 6 | |
| 7 | interface LostConnectionDetector |
| 8 | { |
| 9 | /** |
| 10 | * Determine if the given exception was caused by a lost connection. |
| 11 | * |
| 12 | * @param \Throwable $e |
| 13 | * @return bool |
| 14 | */ |
| 15 | public function causedByLostConnection(Throwable $e): bool; |
| 16 | } |