1# Copyright (C) 2021-2022 Intel Corporation.
2#
3# SPDX-License-Identifier: BSD-3-Clause
4#
5
6class DecodeError(Exception):
7    def __init__(self, opcode, label):
8        super().__init__(f"{hex(opcode)} is not a known opcode for {label}")
9
10class DeferLater(Exception):
11    def __init__(self, label, seq):
12        super().__init__(f"{label}: defer parsing of {seq}")
13
14class ScopeMismatch(Exception):
15    def __init__(self):
16        super().__init__(f"scope mismatch")
17
18class UndefinedSymbol(Exception):
19    def __init__(self, name, context):
20        super().__init__(f"{name} is not a defined symbol under {context}")
21
22class InvalidPath(Exception):
23    def __init__(self, name):
24        super().__init__(f"{name} is not a valid ACPI namespace path")
25
26class FutureWork(Exception):
27    pass
28