Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
1fa3f0a2
Commit
1fa3f0a2
authored
Apr 12, 2011
by
Giorgos Verigakis
Browse files
User-defined exceptions should inherit Exception
parent
84e59e91
Changes
1
Hide whitespace changes
Inline
Side-by-side
api/faults.py
View file @
1fa3f0a2
...
...
@@ -6,9 +6,9 @@ def camelCase(s):
return
s
[
0
].
lower
()
+
s
[
1
:]
class
Fault
(
Base
Exception
):
class
Fault
(
Exception
):
def
__init__
(
self
,
message
=
''
,
details
=
''
,
name
=
''
):
Base
Exception
.
__init__
(
self
,
message
,
details
,
name
)
Exception
.
__init__
(
self
,
message
,
details
,
name
)
self
.
message
=
message
self
.
details
=
details
self
.
name
=
name
or
camelCase
(
self
.
__class__
.
__name__
)
...
...
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