Skip to content

Commit

Permalink
docs: add ZeebeDeadlineExceeded, add reference to GRPC/Zeebe docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dimastbk committed Sep 30, 2024
1 parent 919c169 commit 82b4fc5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ All ``pyzeebe`` errors inherit from :py:class:`PyZeebeError`

.. autoexception:: pyzeebe.errors.ZeebeInternalError

.. autoexception:: pyzeebe.errors.ZeebeDeadlineExceeded

.. autoexception:: pyzeebe.errors.InvalidOAuthCredentialsError

.. autoexception:: pyzeebe.errors.InvalidCamundaCloudCredentialsError
Expand Down
10 changes: 8 additions & 2 deletions pyzeebe/errors/zeebe_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@


class ZeebeBackPressureError(PyZeebeError):
pass
"""If Zeebe is currently in back pressure (too many requests)
See: https://docs.camunda.io/docs/self-managed/zeebe-deployment/operations/backpressure/
"""


class ZeebeGatewayUnavailableError(PyZeebeError):
Expand All @@ -16,7 +19,10 @@ class ZeebeInternalError(PyZeebeError):


class ZeebeDeadlineExceeded(PyZeebeError):
pass
"""If Zeebe hasn't responded after a certain timeout
See: https://grpc.io/docs/guides/deadlines/
"""


class UnknownGrpcStatusCodeError(PyZeebeError):
Expand Down

0 comments on commit 82b4fc5

Please sign in to comment.