vtt/src/ttfrog/exceptions.py
2025-10-22 19:20:47 -07:00

24 lines
553 B
Python

class ApplicationNotInitializedError(Exception):
"""
Thrown when attempting to access methods on the
ApplicationContext before it has been initialized.
"""
class MalformedRequestError(Exception):
"""
Thrown when a request cannnot be completed due to bad arguments.
"""
class RecordNotFoundError(Exception):
"""
Thrown when the specified record could not be loaded by doc_id.
"""
class UnauthorizedError(Exception):
"""
Thrown when a user does not have permissino to do the requested action.
"""