Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
f106ca05
Commit
f106ca05
authored
Nov 30, 2000
by
Michel Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new exceptions
parent
72d40b85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
lib/python/Interface/Exceptions.py
lib/python/Interface/Exceptions.py
+26
-0
No files found.
lib/python/Interface/Exceptions.py
View file @
f106ca05
class
DoesNotImplement
(
Exception
):
""" This object does not implement """
def
__init__
(
self
,
interface
):
self
.
interface
=
interface
def
__str__
(
self
):
return
"""An object does not implement interface %(interface)s
"""
%
self
.
__dict__
class
BrokenImplementation
(
Exception
):
"""An attribute is not completely implemented.
"""
...
...
@@ -13,4 +23,20 @@ class BrokenImplementation(Exception):
The %(name)s attribute was not provided.
"""
%
self
.
__dict__
class
BrokenMethodImplementation
(
Exception
):
"""An method is not completely implemented.
"""
def
__init__
(
self
,
method
,
name
):
self
.
method
=
method
self
.
name
=
name
def
__str__
(
self
):
return
"""An object has failed to implement the method %(method)s
The %(name)s signature attribute is incorrect.
"""
%
self
.
__dict__
class
InvalidInterface
(
Exception
):
pass
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