File: errors.py

package info (click to toggle)
notus-scanner 22.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,556 kB
  • sloc: python: 4,229; sh: 36; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 718 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# SPDX-FileCopyrightText: 2021-2024 Greenbone AG
#
# SPDX-License-Identifier: AGPL-3.0-or-later


class NotusScannerError(Exception):
    """Base Class for error raised in Notus Scanner"""


class AdvisoriesLoadingError(NotusScannerError):
    """A problem while loading an Advisory has occurred"""


class Sha256SumLoadingError(NotusScannerError):
    """A problem while loading sha256sums has occurred"""


class PackageError(NotusScannerError):
    """Base Class for errors raised in package handling"""


class MessageParsingError(NotusScannerError):
    """A problem while parsing an incoming message"""


class ConfigFileError(NotusScannerError):
    """ "A problem while parsing the config file has occurred"""