blob: 7d6beb1d9a98aa682a0b886b4c7ea0ec1b97b003 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates.
# SPDX-License-Identifier: Apache-2.0
"""MLIA exceptions module."""
class ConfigurationError(Exception):
"""Configuration error."""
class FunctionalityNotSupportedError(Exception):
"""Functionality is not supported error."""
def __init__(self, reason: str, description: str) -> None:
"""Init exception."""
super().__init__(f"{reason}: {description}")
self.reason = reason
self.description = description
|