PyZipline/pyzipline/exceptions.py

28 lines
594 B
Python
Raw Normal View History

2023-12-20 23:50:03 -05:00
"""This is a list of all of the exceptions used in PyZipline."""
2023-12-19 05:36:18 -05:00
class HTTPFailure(Exception):
"""
Raised when an HTTP request fails.
"""
2023-12-20 23:50:15 -05:00
class Forbidden(Exception):
"""
Raised when the authenticated user does not have the ability to do an action.
"""
2023-12-19 05:36:18 -05:00
2023-12-22 13:46:22 -05:00
class NotFound(Exception):
"""
Raised when a resource cannot be found.
"""
2023-12-19 05:36:18 -05:00
class PyZiplineError(Exception):
"""
Raised when an error occurs in the PyZipline library.
"""
class FeatureDisabledError(Exception):
"""
Raised when a feature is disabled on the Zipline instance.
"""