Skip to content

Commit

Permalink
Add new exception types (#1148)
Browse files Browse the repository at this point in the history
* Prepare for #1093 by adding PreconditionFailed exception for status code 412
* Add UnsupportedOperation exception for status code 405
  • Loading branch information
mweigel committed Apr 13, 2024
1 parent 31801ef commit 5a9ed4a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hvac/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ class InvalidPath(VaultError):
pass


class UnsupportedOperation(VaultError):
pass


class PreconditionFailed(VaultError):
pass


class RateLimitExceeded(VaultError):
pass

Expand Down

0 comments on commit 5a9ed4a

Please sign in to comment.