PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /proc/self/root/opt/saltstack/salt/extras-3.10/cpapis/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //proc/self/root/opt/saltstack/salt/extras-3.10/cpapis/_errors.py |
"""Errors (and warnings) for cpapis""" class CpAPIError(Exception): """Parent class for all errors running uapi/whmapi/cpapi""" __module__ = 'cpapis' class CpAPIErrorMsg(CpAPIError): """Raised when an API executes and returns valid JSON, but the operation fails and reports a specific error message. This differs per API function""" __module__ = 'cpapis' def __init__(self, *, msg: str, data: dict): super().__init__(str(msg)) self.data = data class CpAPIExecFail(CpAPIError): """Raised when an API call fails to run at all by exiting non-zero, timing out or returning invalid JSON Attributes: cmd: The list or str args passed to run(). returncode: The exit code of the process, negative for signals. stdout: The standard output stderr: The standard error """ __module__ = 'cpapis' def __init__( self, *, msg: str, cmd: list[str], stdout: str, stderr: str, returncode: int, ): super().__init__(msg) self.cmd = cmd self.stdout = stdout self.stderr = stderr self.returncode = returncode class CpAPIDeprecation(DeprecationWarning): """Subclass of DeprecationWarning for cpapis""" __module__ = 'cpapis'