diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-06-10 12:38:11 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-06-11 10:42:18 +0200 |
commit | 2e3550db148b7d141225d67466ef563649320c2b (patch) | |
tree | a31a75a8c0d375bcec3cabe9559727c1077bf004 /mesonbuild/interpreterbase/interpreterbase.py | |
parent | ad584f022dbe4dae7fa60254009fe1d2701e0235 (diff) | |
download | meson-2e3550db148b7d141225d67466ef563649320c2b.zip meson-2e3550db148b7d141225d67466ef563649320c2b.tar.gz meson-2e3550db148b7d141225d67466ef563649320c2b.tar.bz2 |
interpreter: Split exception calsses from interpreterbase.py
Diffstat (limited to 'mesonbuild/interpreterbase/interpreterbase.py')
-rw-r--r-- | mesonbuild/interpreterbase/interpreterbase.py | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/mesonbuild/interpreterbase/interpreterbase.py b/mesonbuild/interpreterbase/interpreterbase.py index 4bdd7e2..708741a 100644 --- a/mesonbuild/interpreterbase/interpreterbase.py +++ b/mesonbuild/interpreterbase/interpreterbase.py @@ -18,6 +18,15 @@ from .. import mparser, mesonlib, mlog from .. import environment, dependencies +from .exceptions import ( + InterpreterException, + InvalidCode, + InvalidArguments, + SubdirDoneRequest, + ContinueRequest, + BreakRequest +) + from functools import wraps import abc import collections.abc @@ -703,24 +712,6 @@ class FeatureDeprecatedKwargs(FeatureCheckKwargsBase): feature_check_class = FeatureDeprecated -class InterpreterException(mesonlib.MesonException): - pass - -class InvalidCode(InterpreterException): - pass - -class InvalidArguments(InterpreterException): - pass - -class SubdirDoneRequest(BaseException): - pass - -class ContinueRequest(BaseException): - pass - -class BreakRequest(BaseException): - pass - class MutableInterpreterObject(InterpreterObject): def __init__(self) -> None: super().__init__() |