From 5914e36b30d429648d626ee37f8969bfbf450186 Mon Sep 17 00:00:00 2001 From: Josh Gachnang Date: Wed, 19 Mar 2014 16:19:52 -0700 Subject: Replacing teeth/overlord with ipa/ironic --- ironic_python_agent/errors.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ironic_python_agent/errors.py') diff --git a/ironic_python_agent/errors.py b/ironic_python_agent/errors.py index 6ba45316..ff4960dc 100644 --- a/ironic_python_agent/errors.py +++ b/ironic_python_agent/errors.py @@ -14,12 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. """ -from teeth_agent import encoding -from teeth_agent import utils +from ironic_python_agent import encoding +from ironic_python_agent import utils class RESTError(Exception, encoding.Serializable): - """Base class for errors generated in teeth.""" + """Base class for errors generated in ironic-python-client.""" message = 'An error occurred' details = 'An unexpected error occurred. Please try back later.' status_code = 500 @@ -91,17 +91,17 @@ class RequestedObjectNotFoundError(NotFound): self.details = details -class OverlordAPIError(RESTError): +class IronicAPIError(RESTError): """Error raised when a call to the agent API fails.""" - message = 'Error in call to teeth-agent-api.' + message = 'Error in call to ironic-api.' def __init__(self, details): - super(OverlordAPIError, self).__init__(details) + super(IronicAPIError, self).__init__(details) self.details = details -class HeartbeatError(OverlordAPIError): +class HeartbeatError(IronicAPIError): """Error raised when a heartbeat to the agent API fails.""" message = 'Error heartbeating to agent API.' @@ -110,7 +110,7 @@ class HeartbeatError(OverlordAPIError): super(HeartbeatError, self).__init__(details) -class LookupNodeError(OverlordAPIError): +class LookupNodeError(IronicAPIError): """Error raised when the node configuration lookup to the Ironic API fails. """ -- cgit v1.2.1