"Fossies" - the Fresh Open Source Software Archive

Member "cinder-14.0.2/cinder/tests/unit/volume/drivers/ibm/fake_pyxcli_exceptions.py" (4 Oct 2019, 1637 Bytes) of package /linux/misc/openstack/cinder-14.0.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #  Copyright (c) 2016 IBM Corporation
    2 #  All Rights Reserved.
    3 #
    4 #    Licensed under the Apache License, Version 2.0 (the "License"); you may
    5 #    not use this file except in compliance with the License. You may obtain
    6 #    a copy of the License at
    7 #
    8 #         http://www.apache.org/licenses/LICENSE-2.0
    9 #
   10 #    Unless required by applicable law or agreed to in writing, software
   11 #    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
   12 #    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
   13 #    License for the specific language governing permissions and limitations
   14 #    under the License.
   15 #
   16 """ Fake pyxcli exceptions for testing the driver without installing pyxcli"""
   17 
   18 
   19 class XCLIError(Exception):
   20     pass
   21 
   22 
   23 class VolumeBadNameError(XCLIError):
   24     pass
   25 
   26 
   27 class CredentialsError(XCLIError):
   28     pass
   29 
   30 
   31 class ConnectionError(XCLIError):
   32     pass
   33 
   34 
   35 class CgHasMirrorError(XCLIError):
   36     pass
   37 
   38 
   39 class CgDoesNotExistError(XCLIError):
   40     pass
   41 
   42 
   43 class CgEmptyError(XCLIError):
   44     pass
   45 
   46 
   47 class PoolSnapshotLimitReachedError(XCLIError):
   48     pass
   49 
   50 
   51 class CommandFailedRuntimeError(XCLIError):
   52     pass
   53 
   54 
   55 class PoolOutOfSpaceError(XCLIError):
   56     pass
   57 
   58 
   59 class CgLimitReachedError(XCLIError):
   60     pass
   61 
   62 
   63 class HostBadNameError(XCLIError):
   64     pass
   65 
   66 
   67 class CgNotEmptyError(XCLIError):
   68     pass
   69 
   70 
   71 class SystemOutOfSpaceError(XCLIError):
   72     pass
   73 
   74 
   75 class CgNameExistsError(XCLIError):
   76     pass
   77 
   78 
   79 class CgBadNameError(XCLIError):
   80     pass
   81 
   82 
   83 class SnapshotGroupDoesNotExistError(XCLIError):
   84     pass
   85 
   86 
   87 class ClosedTransportError(XCLIError):
   88     pass
   89 
   90 
   91 class VolumeNotInConsGroup(XCLIError):
   92     pass