374 lines
5.4 KiB
Python
374 lines
5.4 KiB
Python
# Copyright (c) 2015 SUSE Linux GmbH. All rights reserved.
|
|
#
|
|
# This file is part of kiwi.
|
|
#
|
|
# kiwi is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# kiwi is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with kiwi. If not, see <http://www.gnu.org/licenses/>
|
|
#
|
|
|
|
|
|
class KiwiError(Exception):
|
|
"""
|
|
Base class to handle all known exceptions. Specific exceptions
|
|
are sub classes of this base class
|
|
"""
|
|
def __init__(self, message):
|
|
self.message = message
|
|
|
|
def __str__(self):
|
|
return format(self.message)
|
|
|
|
|
|
class KiwiArchiveSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootImageSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootLoaderConfigSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootLoaderGrubDataError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootLoaderGrubFontError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootLoaderGrubInstallError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootLoaderGrubModulesError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootLoaderGrubPlatformError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootLoaderGrubSecureBootError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootLoaderInstallSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootLoaderIsoLinuxPlatformError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootLoaderTargetError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootLoaderZiplInstallError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootLoaderZiplPlatformError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootLoaderZiplSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBootStrapPhaseFailed(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiBundleError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiCommandError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiCommandNotLoaded(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiCompressionFormatUnknown(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiCompatError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiConfigFileNotFound(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiContainerSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiContainerImageSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiDataStructureError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiDescriptionInvalid(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiDeviceProviderError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiDiskBootImageError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiDiskFileSystemSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiDiskFormatSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiDiskGeometryError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiDistributionNameError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiFileNotFound(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiFileSystemSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiFileSystemSyncError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiFormatSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiHelpNoCommandGiven(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiInstallBootImageError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiInstallMediaError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiInstallPhaseFailed(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiInvalidVolumeName(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiIsoLoaderError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiIsoMetaDataError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiLiveBootImageError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiLuksSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiLoadCommandUndefined(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiLogFileSetupFailed(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiLoopSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiMappedDeviceError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiMountKernelFileSystemsError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiMountSharedDirectoryError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiNotImplementedError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiPackageManagerSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiPartitionerGptFlagError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiPartitionerMsDosFlagError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiPartitionerSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiPrivilegesError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiProfileNotFound(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiPxeBootImageError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiRaidSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiRepositorySetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiRepoTypeUnknown(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiRequestedTypeError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiRequestError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiResultError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiRootDirExists(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiRootInitCreationError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiRpmDatabaseReloadError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiSchemaImportError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiScriptFailed(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiSetupIntermediateConfigError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiSystemDeletePackagesFailed(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiSystemInstallPackagesFailed(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiSystemUpdateFailed(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiTargetDirectoryNotFound(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiTemplateError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiTypeNotFound(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiUnknownServiceName(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiUriStyleUnknown(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiUriTypeUnknown(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiValidationError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiVhdTagError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiVmdkToolsError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiVolumeGroupConflict(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiVolumeManagerSetupError(KiwiError):
|
|
pass
|
|
|
|
|
|
class KiwiVolumeRootIDError(KiwiError):
|
|
pass
|