diff options
| author | Josh Gachnang <josh@pcsforeducation.com> | 2014-03-19 16:19:52 -0700 |
|---|---|---|
| committer | Josh Gachnang <josh@pcsforeducation.com> | 2014-03-19 16:19:52 -0700 |
| commit | 5914e36b30d429648d626ee37f8969bfbf450186 (patch) | |
| tree | f935a37dc9175f4016fdb73a616b7341ec9d6f05 /ironic_python_agent/errors.py | |
| parent | b30d345c2e8ec77935558f75080f734daa3ca4f0 (diff) | |
| download | ironic-python-agent-5914e36b30d429648d626ee37f8969bfbf450186.tar.gz | |
Replacing teeth/overlord with ipa/ironic
Diffstat (limited to 'ironic_python_agent/errors.py')
| -rw-r--r-- | ironic_python_agent/errors.py | 16 |
1 files changed, 8 insertions, 8 deletions
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. """ |
