Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/uaclient/api/ |
Upload File : |
from uaclient import messages from uaclient.api.errors import APIError from uaclient.exceptions import ( AlreadyAttachedError, ConnectivityError, ContractAPIError, DepedentOptionError, EntitlementNotDisabledError, EntitlementNotEnabledError, EntitlementNotFoundError, EntitlementsNotEnabledError, FeatureNotSupportedOldTokenError, IncompatibleServiceStopsEnable, InvalidOptionCombination, InvalidProImage, LockHeldError, MagicAttachTokenAlreadyActivated, MagicAttachTokenError, MagicAttachUnavailable, NonAutoAttachImageError, NonRootUserError, RequiredServiceStopsEnable, UbuntuProError, UnattachedError, UnsupportedManifestFile, UrlError, UserFacingError, ) __all__ = [ "AlreadyAttachedError", "ConnectivityError", "ContractAPIError", "EntitlementNotFoundError", "InvalidOptionCombination", "FeatureNotSupportedOldTokenError", "InvalidProImage", "LockHeldError", "MagicAttachTokenAlreadyActivated", "MagicAttachTokenError", "MagicAttachUnavailable", "NonAutoAttachImageError", "NonRootUserError", "UbuntuProError", "UnattachedError", "UrlError", "UserFacingError", "EntitlementsNotEnabledError", "EntitlementNotEnabledError", "EntitlementNotDisabledError", "IncompatibleServiceStopsEnable", "RequiredServiceStopsEnable", "UnsupportedManifestFile", "DepedentOptionError", ] class AutoAttachDisabledError(UbuntuProError): _msg = messages.E_AUTO_ATTACH_DISABLED_ERROR class UnattendedUpgradesError(APIError): _formatted_msg = messages.E_UNATTENDED_UPGRADES_ERROR class NotSupported(UbuntuProError): _msg = messages.E_NOT_SUPPORTED