| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.146.1.el8_10.x86_64 #1 SMP Tue Jul 21 15:46:30 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.6/site-packages/gssapi/ |
Upload File : |
from gssapi.raw.exceptions import * # noqa
from gssapi.raw.misc import GSSError # noqa
"""High-Level API Errors
This module includes several high-level exceptions,
in addition to GSSError and exceptions from
:mod:`gssapi.raw.exceptions`.
"""
# non-GSS exceptions
class GeneralError(Exception):
"""A General High-Level API Error"""
MAJOR_MESSAGE = "General error"
FMT_STR = "{maj}: {min}."
def __init__(self, minor_message, **kwargs):
maj_str = self.MAJOR_MESSAGE.format(**kwargs)
err_str = self.FMT_STR.format(maj=maj_str, min=minor_message)
super(GeneralError, self).__init__(err_str)
class UnknownUsageError(GeneralError):
"""An Error indicating an unknown usage type"""
MAJOR_MESSAGE = "Unable to determine {obj} usage"
class EncryptionNotUsed(GeneralError):
"""An Error indicating that encryption was requested, but not used"""
MAJOR_MESSAGE = "Confidentiality was requested, but not used"
def __init__(self, minor_message, unwrapped_message=None, **kwargs):
super(EncryptionNotUsed, self).__init__(minor_message, **kwargs)
self.unwrapped_message = unwrapped_message