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
7baf4489
Commit
7baf4489
authored
Jul 06, 2017
by
Marco Pivetta
Committed by
GitHub
Jul 06, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2770 from Tobion/patch-1
Fix exception reference in documentation
parents
8906f736
17cd8d71
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 @
7baf4489
...
...
@@ -242,7 +242,7 @@ Error handling
In order to handle errors related to deadlocks or lock wait timeouts,
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:
::
...
...
@@ -251,16 +251,16 @@ A practical example is as follows:
try {
// process stuff
} catch (\Doctrine
/DBAL/Exception/
RetryableException $e) {
} catch (\Doctrine
\DBAL\Exception\
RetryableException $e) {
// retry the processing
}
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.
- ``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
- ``Doctrine
\DBAL\Exception\
LockWaitTimeoutException``: this exception happens when
a transaction ha
s
to wait a considerable amount of time to obtain a lock, even if
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