Debian Codegraph @

ansible_collections/community/dns/plugins/module_utils/_conversion/base.py

raw
1 # Copyright (c) 2021 Felix Fontein
2 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
3 # SPDX-License-Identifier: GPL-3.0-or-later
4
5 # Note that this module util is **PRIVATE** to the collection. It can have breaking changes at any time.
6 # Do not use this from other collections or standalone plugins/modules!
7
8 from __future__ import annotations
9
10
11 class DNSConversionError(Exception):
12 def __init__(self, message: str) -> None:
13 super().__init__(message)
14 self.error_message = message