Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > ssa > internal >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
__init__.py | File | 171 bytes | July 02 2025 14:54:48. | |
constants.py | File | 915 bytes | July 02 2025 14:54:48. | |
exceptions.py | File | 1288 bytes | July 02 2025 14:54:48. | |
mailer.py | File | 5515 bytes | July 02 2025 14:54:48. | |
tools.py | File | 2317 bytes | July 02 2025 14:54:48. | |
utils.py | File | 15906 bytes | July 02 2025 14:54:48. |
# -*- coding: utf-8 -*- # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2021 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT """ This module contains custom exception classes """ import json class SSAError(Exception): """ SSA internal exception class. Adds an 'error' status and stores information about occurred exception. Provides JSON encoded info about occurred exception. """ def __init__(self, message: str, *, flag: str = 'error', extra: dict = None): super().__init__(message) self.status = 'error' self.reason = message self.extra_data = extra self.type_flag = flag def __str__(self) -> 'json str': if self.type_flag == 'warning': msg = { 'result': 'success', 'warning': self.reason } else: msg = { 'result': self.reason } return json.dumps(msg) class SSAAgentError(SSAError): """ SSA Agent exception class """ class SSAManagerError(SSAError): """ SSA Manager exception class """ class SSAMailerError(SSAError): """ SSA Mailer exception class """
SILENT KILLER Tool