Skip to content

exceptions

exceptions

Exceptions for the publish routes.

GET_Publish_Error and CRUD_Publish_Error are the base pair: reads and writes against /api/publish/v2.

GET_PublishContent_Error

GET_PublishContent_Error(
    res: ResponseGetData, message: str | None = None
)

Bases: GET_Publish_Error

Raised when a publication-content GET returns a non-2xx response.

Source code in src/crew_dcs/routes/publish/exceptions.py
23
24
def __init__(self, res: rgd.ResponseGetData, message: str | None = None):
    super().__init__(res=res, message=message)

GET_PublishStatus_Error

GET_PublishStatus_Error(
    res: ResponseGetData, message: str | None = None
)

Bases: GET_Publish_Error

Raised when a publication status GET request returns a non-success response.

Source code in src/crew_dcs/routes/publish/exceptions.py
23
24
def __init__(self, res: rgd.ResponseGetData, message: str | None = None):
    super().__init__(res=res, message=message)

GET_PublishSubscriptions_Error

GET_PublishSubscriptions_Error(
    res: ResponseGetData, message: str | None = None
)

Bases: GET_Publish_Error

Raised when a publish subscription GET request returns a non-success response.

Source code in src/crew_dcs/routes/publish/exceptions.py
23
24
def __init__(self, res: rgd.ResponseGetData, message: str | None = None):
    super().__init__(res=res, message=message)