-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Undeprecate \Doctrine\DBAL\Driver\DriverException interface
- Loading branch information
Showing
23 changed files
with
103 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,34 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Doctrine\DBAL\Driver; | ||
|
||
use Throwable; | ||
|
||
/** | ||
* @deprecated Use {@link Exception} instead | ||
* | ||
* @psalm-immutable | ||
*/ | ||
interface DriverException extends Exception | ||
interface DriverException extends Throwable | ||
{ | ||
/** | ||
* Returns the driver specific error code if available. | ||
* | ||
* @deprecated Use {@link getCode()} or {@link getSQLState()} instead | ||
* | ||
* Returns null if no driver specific error code is available | ||
* for the error raised by the driver. | ||
* | ||
* @return int|string|null | ||
*/ | ||
public function getErrorCode(); | ||
|
||
/** | ||
* Returns the SQLSTATE the driver was in at the time the error occurred. | ||
* | ||
* Returns null if the driver does not provide a SQLSTATE for the error occurred. | ||
* | ||
* @return string|null | ||
*/ | ||
public function getSQLState(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.