This repository has been archived by the owner on May 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/encrypted-data-bags' into encrypted_databags
- Loading branch information
Showing
2 changed files
with
1 addition
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
# Exception hierarchy for chef | ||
# Copyright (c) 2010 Noah Kantrowitz <[email protected]> | ||
|
||
|
||
class ChefError(Exception): | ||
"""Top-level Chef error.""" | ||
|
||
|
||
class ChefServerError(ChefError): | ||
"""An error from a Chef server. May include a HTTP response code.""" | ||
|
||
|
@@ -23,15 +21,12 @@ def from_error(message, code=None): | |
}.get(code, ChefServerError) | ||
return cls(message, code) | ||
|
||
|
||
class ChefServerNotFoundError(ChefServerError): | ||
"""A 404 Not Found server error.""" | ||
|
||
|
||
class ChefAPIVersionError(ChefError): | ||
"""An incompatible API version error""" | ||
|
||
|
||
class ChefObjectTypeError(ChefError): | ||
"""An invalid object type error""" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters