Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
c64145e7
Commit
c64145e7
authored
Jan 23, 2025
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slap/exception: all slap Exception must have a common parent class
This will allow to catch only the slap exceptions.
parent
70ccd32a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
slapos/slap/exception.py
slapos/slap/exception.py
+8
-5
No files found.
slapos/slap/exception.py
View file @
c64145e7
...
...
@@ -31,23 +31,26 @@
from
zope.interface
import
implementer
from
.interface
import
slap
as
interface
class
SlapException
(
Exception
):
pass
"""Exposed exceptions"""
@
implementer
(
interface
.
IResourceNotReady
)
class
ResourceNotReady
(
Exception
):
class
ResourceNotReady
(
Slap
Exception
):
pass
@
implementer
(
interface
.
IServerError
)
class
ServerError
(
Exception
):
class
ServerError
(
Slap
Exception
):
pass
@
implementer
(
interface
.
INotFoundError
)
class
NotFoundError
(
Exception
):
class
NotFoundError
(
Slap
Exception
):
pass
class
AuthenticationError
(
Exception
):
class
AuthenticationError
(
Slap
Exception
):
pass
@
implementer
(
interface
.
IConnectionError
)
class
ConnectionError
(
Exception
):
class
ConnectionError
(
Slap
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