Exceptions

class freshchat.client.exceptions.FreshChatClientException(message: Union[str, Dict[AnyStr, Any]] = None, response: <sphinx.ext.autodoc.importer._MockObject object at 0x7f9cd03022e8> = None, *args)

Class to customize exceptions of the library with attribute DEFAULT_MESSAGE to be returned if message isn’t provided

class freshchat.client.exceptions.FreshChatUnauthorised(message: Union[str, Dict[AnyStr, Any]] = None, response: <sphinx.ext.autodoc.importer._MockObject object at 0x7f9cd03022e8> = None, *args)

Class inherits from FreshChatClientException represents Unauthorized exception and sets DEFAULT_MESSAGE to Access to the requested resource is unauthorised

class freshchat.client.exceptions.FreshChatForbidden(message: Union[str, Dict[AnyStr, Any]] = None, response: <sphinx.ext.autodoc.importer._MockObject object at 0x7f9cd03022e8> = None, *args)

Class inherits from FreshChatClientException represents Forbidden access exception and sets DEFAULT_MESSAGE to Access to the requested resource is not permitted

class freshchat.client.exceptions.FreshChatNotAllowed(message: Union[str, Dict[AnyStr, Any]] = None, response: <sphinx.ext.autodoc.importer._MockObject object at 0x7f9cd03022e8> = None, *args)

Class inherits from FreshChatClientException represents Not Allowed exception and sets DEFAULT_MESSAGE to Access to the requested resource is not allowed

class freshchat.client.exceptions.FreshChatBadRequest(message: Union[str, Dict[AnyStr, Any]] = None, response: <sphinx.ext.autodoc.importer._MockObject object at 0x7f9cd03022e8> = None, *args)

Class inherits from FreshChatClientException represents Bad Request exception and sets DEFAULT_MESSAGE to Bad request, probably due to invalid syntax or missing required ” “fields

class freshchat.client.exceptions.TooManyRequests(message: Union[str, Dict[AnyStr, Any]] = None, response: <sphinx.ext.autodoc.importer._MockObject object at 0x7f9cd03022e8> = None, *args)

Class inherits from FreshChatClientException represents Too Many Requests exception and sets DEFAULT_MESSAGE to Too many requests. Requests overcame the proper time limit

class freshchat.client.exceptions.ServerUnavailable(message: Union[str, Dict[AnyStr, Any]] = None, response: <sphinx.ext.autodoc.importer._MockObject object at 0x7f9cd03022e8> = None, *args)

Class inherits from FreshChatClientException represents Unavailable Server exception and sets DEFAULT_MESSAGE to The server is currently unable to handle the request due to a temporary overload or scheduled maintenance”

class freshchat.client.exceptions.ResourceNotFound(message: Union[str, Dict[AnyStr, Any]] = None, response: <sphinx.ext.autodoc.importer._MockObject object at 0x7f9cd03022e8> = None, *args)

Class inherits from FreshChatClientException represents Resource Not Found exception and sets DEFAULT_MESSAGE to The requested resource was not found

class freshchat.client.exceptions.ServerSideError(message: Union[str, Dict[AnyStr, Any]] = None, response: <sphinx.ext.autodoc.importer._MockObject object at 0x7f9cd03022e8> = None, *args)

Class inherits from FreshChatClientException represents Server Side Error exception and sets DEFAULT_MESSAGE to Something went wrong on the server side

class freshchat.client.exceptions.Conflict(message: Union[str, Dict[AnyStr, Any]] = None, response: <sphinx.ext.autodoc.importer._MockObject object at 0x7f9cd03022e8> = None, *args)

Class inherits from FreshChatClientException represents Conflict exception and sets DEFAULT_MESSAGE to The request causes data inconsistencies

class freshchat.client.exceptions.HttpResponseCodeError

Class responsible to return the proper exception based on the response status code