Skip to content

Commit

Permalink
Merge pull request python-zk#721 from ztzg/x-16104-quota-error-kills-…
Browse files Browse the repository at this point in the history
…handle

fix(exceptions): Register exception for server-side QUOTAEXCEEDED(-125)
  • Loading branch information
ceache authored May 26, 2023
2 parents 2c36d69 + 6054d82 commit 92bd0c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kazoo/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ class NotReadOnlyCallError(ZookeeperError):
a read-only server"""


@_zookeeper_exception(-125)
class QuotaExceededError(ZookeeperError):
"""Exceeded the quota that was set on the path"""


class ConnectionClosedError(SessionExpiredError):
"""Connection is closed"""

Expand Down

0 comments on commit 92bd0c2

Please sign in to comment.