| Server IP : 216.107.138.43 / Your IP : 216.73.217.127 Web Server : LiteSpeed System : Linux srv514655384.host.ultaserver.net 5.15.0-124-generic #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64 User : ojolc3829 ( 1151) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON 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