Source code for otx.cli.utils.errors

"""Utils for CLI errors."""

# Copyright (C) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#


[docs] class CliException(Exception): """Custom exception class for CLI."""
[docs] class ConfigValueError(CliException): """Configuration value is not suitable for CLI.""" def __init__(self, message): super().__init__(message)
[docs] class NotSupportedError(CliException): """Not supported error.""" def __init__(self, message): super().__init__(message)
[docs] class FileNotExistError(CliException): """Not exist given configuration.""" def __init__(self, message): super().__init__(message)