diff options
Diffstat (limited to 'ethosu/vela/errors.py')
-rw-r--r-- | ethosu/vela/errors.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/ethosu/vela/errors.py b/ethosu/vela/errors.py index bf3bb4d3..22fc17c6 100644 --- a/ethosu/vela/errors.py +++ b/ethosu/vela/errors.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright 2020-2021 Arm Limited and/or its affiliates <open-source-office@arm.com> +# SPDX-FileCopyrightText: Copyright 2020-2021, 2023 Arm Limited and/or its affiliates <open-source-office@arm.com> # # SPDX-License-Identifier: Apache-2.0 # @@ -75,3 +75,17 @@ class AllocationError(VelaError): def __init__(self, msg): super().__init__(f"Allocation failed: {msg}") + + +class ByteAlignmentError(VelaError): + """Raised when value is unaligned""" + + def __init__(self, msg): + super().__init__(f"Unaligned Value: {msg}") + + +class ByteSizeError(VelaError): + """Raised when size has illegal value""" + + def __init__(self, msg): + super().__init__(f"Illegal Size: {msg}") |