14 lines
372 B
Python
14 lines
372 B
Python
from requests.exceptions import HTTPError
|
|
|
|
|
|
class DiscourseError(HTTPError):
|
|
""" A generic error while attempting to communicate with Discourse """
|
|
|
|
|
|
class DiscourseServerError(DiscourseError):
|
|
""" The Discourse Server encountered an error while processing the request """
|
|
|
|
|
|
class DiscourseClientError(DiscourseError):
|
|
""" An invalid request has been made """
|