"Fossies" - the Fresh Open Source Software Archive

Member "manila-8.1.3/manila/tests/share/drivers/dell_emc/plugins/unity/fake_exceptions.py" (20 Jul 2020, 1852 Bytes) of package /linux/misc/openstack/manila-8.1.3.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. See also the latest Fossies "Diffs" side-by-side code changes report for "fake_exceptions.py": 8.1.2_vs_8.1.3.

    1 # Copyright (c) 2016 EMC 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 
   17 class UnityFakeException(Exception):
   18     pass
   19 
   20 
   21 class UnityException(UnityFakeException):
   22     pass
   23 
   24 
   25 class UnitySmbShareNameExistedError(UnityException):
   26     pass
   27 
   28 
   29 class UnityFileSystemNameAlreadyExisted(UnityException):
   30     pass
   31 
   32 
   33 class UnityNasServerNameUsedError(UnityException):
   34     pass
   35 
   36 
   37 class UnityNfsShareNameExistedError(UnityException):
   38     pass
   39 
   40 
   41 class UnitySnapNameInUseError(UnityException):
   42     pass
   43 
   44 
   45 class UnityIpAddressUsedError(UnityException):
   46     pass
   47 
   48 
   49 class UnityResourceNotFoundError(UnityException):
   50     pass
   51 
   52 
   53 class UnityOneDnsPerNasServerError(UnityException):
   54     pass
   55 
   56 
   57 class UnitySmbNameInUseError(UnityException):
   58     pass
   59 
   60 
   61 class UnityNfsAlreadyEnabledError(UnityException):
   62     pass
   63 
   64 
   65 class UnityHostNotFoundException(UnityException):
   66     pass
   67 
   68 
   69 class UnityNothingToModifyError(UnityException):
   70     pass
   71 
   72 
   73 class UnityShareShrinkSizeTooSmallError(UnityException):
   74     pass
   75 
   76 
   77 class UnityTenantNameInUseError(UnityException):
   78     pass
   79 
   80 
   81 class UnityVLANUsedByOtherTenantError(UnityException):
   82     pass
   83 
   84 
   85 class SystemAPINotSupported(UnityException):
   86     pass
   87 
   88 
   89 class UnityVLANAlreadyHasInterfaceError(UnityException):
   90     pass
   91 
   92 
   93 class UnityAclUserNotFoundError(UnityException):
   94     pass