2013-10-22 17:46:41 +00:00
|
|
|
# Copyright 2011 OpenStack Foundation
|
|
|
|
# Copyright 2013 Rackspace Hosting
|
|
|
|
# Copyright 2013 Hewlett-Packard Development Company, L.P.
|
|
|
|
# All Rights Reserved.
|
2012-03-07 08:04:53 -06:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
# not use this file except in compliance with the License. You may obtain
|
|
|
|
# a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
|
2014-03-17 14:12:13 -07:00
|
|
|
"""
|
|
|
|
Exception definitions
|
|
|
|
"""
|
2012-10-30 13:47:05 -07:00
|
|
|
|
2014-03-17 14:12:13 -07:00
|
|
|
# alias exceptions from apiclient for users of this module
|
2016-11-10 10:00:24 -05:00
|
|
|
from troveclient.apiclient.exceptions import * # noqa
|
2012-07-03 10:21:43 -05:00
|
|
|
|
|
|
|
|
|
|
|
class NoTokenLookupException(Exception):
|
|
|
|
"""This form of authentication does not support looking up
|
2013-12-14 12:12:43 +01:00
|
|
|
endpoints from an existing token.
|
|
|
|
"""
|
2012-07-03 10:21:43 -05:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
2012-08-09 11:04:28 -05:00
|
|
|
class ResponseFormatError(Exception):
|
|
|
|
"""Could not parse the response format."""
|
|
|
|
pass
|
2015-06-22 15:01:42 -04:00
|
|
|
|
|
|
|
|
|
|
|
class GuestLogNotFoundError(Exception):
|
|
|
|
"""The specified guest log does not exist."""
|
|
|
|
pass
|