Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
7ccf8a94
Commit
7ccf8a94
authored
Nov 10, 2007
by
Christian Theune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reimporting exception classes that were moved from ZODB.POSException to
transaction.interfaces.
parent
904a3839
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
src/ZODB/POSException.py
src/ZODB/POSException.py
+4
-12
No files found.
src/ZODB/POSException.py
View file @
7ccf8a94
...
...
@@ -17,6 +17,10 @@ $Id$"""
from
ZODB.utils
import
oid_repr
,
readable_tid_repr
# BBB: We moved the two transactions to the transaction package
from
transaction.interfaces
import
TransactionError
,
TransactionFailedError
def
_fmt_undo
(
oid
,
reason
):
s
=
reason
and
(
": %s"
%
reason
)
or
""
return
"Undo error %s%s"
%
(
oid_repr
(
oid
),
s
)
...
...
@@ -44,18 +48,6 @@ class POSKeyError(KeyError, POSError):
def
__str__
(
self
):
return
oid_repr
(
self
.
args
[
0
])
class
TransactionError
(
POSError
):
"""An error occurred due to normal transaction processing."""
class
TransactionFailedError
(
POSError
):
"""Cannot perform an operation on a transaction that previously failed.
An attempt was made to commit a transaction, or to join a transaction,
but this transaction previously raised an exception during an attempt
to commit it. The transaction must be explicitly aborted, either by
invoking abort() on the transaction, or begin() on its transaction
manager.
"""
class
ConflictError
(
TransactionError
):
"""Two transactions tried to modify the same object at once.
...
...
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