Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9343026
exc.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
843 B
Subscribers
None
exc.py
View Options
# Copyright (C) 2015-2017 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
class
BadInputExc
(
ValueError
):
"""Wrong request to the api.
Example: Asking a content with the wrong identifier format.
"""
pass
class
NotFoundExc
(
Exception
):
"""Good request to the api but no result were found.
Example: Asking a content with the right identifier format but
that content does not exist.
"""
pass
class
ForbiddenExc
(
Exception
):
"""Good request to the api, forbidden result to return due to enforce
policy.
Example: Asking for a raw content which exists but whose mimetype
is not text.
"""
pass
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Fri, Jul 4, 1:12 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3289989
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment