aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela/errors.py')
-rw-r--r--ethosu/vela/errors.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ethosu/vela/errors.py b/ethosu/vela/errors.py
index 2c93fbc6..1a30d546 100644
--- a/ethosu/vela/errors.py
+++ b/ethosu/vela/errors.py
@@ -52,6 +52,13 @@ class OptionError(VelaError):
self.data = "Incorrect argument to CLI option: {} {}: {}".format(option, option_value, msg)
+class AllocationError(VelaError):
+ """Raised when allocation fails"""
+
+ def __init__(self, msg):
+ self.data = msg
+
+
def OperatorError(op, msg):
"""Called when parsing an operator results in errors"""