Skip to content

Commit

Permalink
Merge pull request #495 from dimastbk/update-docs
Browse files Browse the repository at this point in the history
docs: add ZeebeDeadlineExceeded, add reference to GRPC/Zeebe docs
  • Loading branch information
dimastbk authored Sep 30, 2024
2 parents 919c169 + 82b4fc5 commit 629c6be
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 629c6be

Please sign in to comment.