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
17cd8d71
Commit
17cd8d71
authored
Jul 05, 2017
by
Tobias Schultze
Committed by
GitHub
Jul 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix exception reference in documentation
Fixes #2760
parent
8906f736
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
transactions.rst
docs/en/reference/transactions.rst
+5
-5
No files found.
docs/en/reference/transactions.rst
View file @
17cd8d71
...
@@ -242,7 +242,7 @@ Error handling
...
@@ -242,7 +242,7 @@ Error handling
In order to handle errors related to deadlocks or lock wait timeouts,
In order to handle errors related to deadlocks or lock wait timeouts,
you can use Doctrine built-in transaction exceptions.
you can use Doctrine built-in transaction exceptions.
All transaction exceptions
have a marker interface: ``Doctrine/DBAL/Exception/
RetryableException``.
All transaction exceptions
where retrying makes sense have a marker interface: ``Doctrine\DBAL\Exception\
RetryableException``.
A practical example is as follows:
A practical example is as follows:
::
::
...
@@ -251,16 +251,16 @@ A practical example is as follows:
...
@@ -251,16 +251,16 @@ A practical example is as follows:
try {
try {
// process stuff
// process stuff
} catch (\Doctrine
/DBAL/Exception/
RetryableException $e) {
} catch (\Doctrine
\DBAL\Exception\
RetryableException $e) {
// retry the processing
// retry the processing
}
}
If you need stricter control, you can catch the concrete exceptions directly:
If you need stricter control, you can catch the concrete exceptions directly:
- ``Doctrine
/DBAL/Exception/
DeadlockException``: this can happen when each member
- ``Doctrine
\DBAL\Exception\
DeadlockException``: this can happen when each member
of a group of actions is waiting for some other member to release a shared lock.
of a group of actions is waiting for some other member to release a shared lock.
- ``Doctrine
/DBAL/Exception/
LockWaitTimeoutException``: this exception happens when
- ``Doctrine
\DBAL\Exception\
LockWaitTimeoutException``: this exception happens when
a transaction ha
ve
to wait a considerable amount of time to obtain a lock, even if
a transaction ha
s
to wait a considerable amount of time to obtain a lock, even if
a deadlock is not involved.
a deadlock is not involved.
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