import urlparse
import sys
-from heat.openstack.common import exception
from heat.openstack.common import log as logging
-NotFound = exception.NotFound
-Error = exception.Error
-InvalidContentType = exception.InvalidContentType
-
_FATAL_EXCEPTION_FORMAT_ERRORS = False
class EgressRuleNotAllowed(HeatException):
message = _("Egress rules are only allowed when "
"Neutron is used and the 'VpcId' property is set.")
+
+
+class Error(Exception):
+ def __init__(self, message=None):
+ super(Error, self).__init__(message)
+
+
+class NotFound(Error):
+ pass
+
+
+class InvalidContentType(HeatException):
+ message = "Invalid content type %(content_type)s"