"""
-class MessageSendFailure(BaseException):
- pass
+class A1Error(Exception):
+ """A base class for A1 exceptions."""
+ def __init__(self, message):
+ # Call the base class constructor with the parameters it needs
+ super(A1Error, self).__init__(message)
-class ExpectedAckNotReceived(BaseException):
- pass
+class CantDeleteNonEmptyType(A1Error):
+ """tried to delete a type that isn't empty"""
-class PolicyNotFound(BaseException):
- pass
+class PolicyInstanceNotFound(A1Error):
+ """a policy instance cannot be found"""
-class MissingRmrString(BaseException):
- pass
+class PolicyTypeNotFound(A1Error):
+ """a policy type instance cannot be found"""
-class MissingManifest(BaseException):
- pass
+class PolicyTypeAlreadyExists(A1Error):
+ """a policy type already exists and replace not supported at this time"""
-class MissingRmrMapping(BaseException):
- pass
+
+class PolicyTypeIdMismatch(A1Error):
+ """a policy type request path ID differs from its body ID"""