Files
python-barbicanclient/barbicanclient/exceptions.py
Chellygel 2a27f57f59 Fixes tests on invalid payload secret creation and adds new exception
Adding a new exception to cover the case of a payload being set
to a list or int. Moved the zero case to the no payload tests as well.
Functional test now verifies new exception is raised with bad types.

Change-Id: Id026fd7a2004c6c30502a30bca96b6116d4bc9cf
2015-03-17 16:27:39 -05:00

27 lines
748 B
Python

# Copyright (c) 2015 Rackspace, Inc.
#
# 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.
class BarbicanException(Exception):
pass
class NoPayloadException(BarbicanException):
pass
class InvalidPayloadException(BarbicanException):
pass