Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
e1bd04f8
Commit
e1bd04f8
authored
Nov 06, 2014
by
Tobias Schultze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make RetryableException a marker interface
parent
a5d1ead1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
DeadlockException.php
lib/Doctrine/DBAL/Exception/DeadlockException.php
+1
-1
LockWaitTimeoutException.php
lib/Doctrine/DBAL/Exception/LockWaitTimeoutException.php
+1
-1
RetryableException.php
lib/Doctrine/DBAL/Exception/RetryableException.php
+2
-2
RetryWrapper.php
lib/Doctrine/DBAL/RetryWrapper.php
+3
-2
No files found.
lib/Doctrine/DBAL/Exception/DeadlockException.php
View file @
e1bd04f8
...
...
@@ -26,6 +26,6 @@ namespace Doctrine\DBAL\Exception;
* @link www.doctrine-project.org
* @since 2.6
*/
class
DeadlockException
extends
RetryableException
class
DeadlockException
extends
ServerException
implements
RetryableException
{
}
lib/Doctrine/DBAL/Exception/LockWaitTimeoutException.php
View file @
e1bd04f8
...
...
@@ -26,6 +26,6 @@ namespace Doctrine\DBAL\Exception;
* @link www.doctrine-project.org
* @since 2.6
*/
class
LockWaitTimeoutException
extends
RetryableException
class
LockWaitTimeoutException
extends
ServerException
implements
RetryableException
{
}
lib/Doctrine/DBAL/Exception/RetryableException.php
View file @
e1bd04f8
...
...
@@ -20,12 +20,12 @@
namespace
Doctrine\DBAL\Exception
;
/**
*
Base class
for all exceptions where retrying the transaction makes sense.
*
Marker interface
for all exceptions where retrying the transaction makes sense.
*
* @author Tobias Schultze <http://tobion.de>
* @link www.doctrine-project.org
* @since 2.6
*/
abstract
class
RetryableException
extends
Server
Exception
interface
Retryable
Exception
{
}
lib/Doctrine/DBAL/RetryWrapper.php
View file @
e1bd04f8
...
...
@@ -102,8 +102,9 @@ class RetryWrapper
* The callable is only re-executed for temporary database errors where retrying
* the failed transaction after a short delay usually resolves the problem. Such
* errors are for example deadlocks and lock wait timeouts. Internally the raised
* exception must extend RetryableException. Other exceptions like syntax errors
* or constraint violations will not cause the callable to be re-executed.
* exception must implement the marker interface RetryableException. Other exceptions
* like syntax errors or constraint violations will not cause the callable to be
* re-executed.
*
* All arguments given will be passed through to the wrapped callable.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment