|
|
@ -70,9 +70,13 @@ meson_command = None |
|
|
|
class MesonException(Exception): |
|
|
|
class MesonException(Exception): |
|
|
|
'''Exceptions thrown by Meson''' |
|
|
|
'''Exceptions thrown by Meson''' |
|
|
|
|
|
|
|
|
|
|
|
file = None # type: T.Optional[str] |
|
|
|
def __init__(self, *args: object, file: T.Optional[str] = None, |
|
|
|
lineno = None # type: T.Optional[int] |
|
|
|
lineno: T.Optional[int] = None, colno: T.Optional[int] = None): |
|
|
|
colno = None # type: T.Optional[int] |
|
|
|
super().__init__(*args) |
|
|
|
|
|
|
|
self.file = file |
|
|
|
|
|
|
|
self.lineno = lineno |
|
|
|
|
|
|
|
self.colno = colno |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EnvironmentException(MesonException): |
|
|
|
class EnvironmentException(MesonException): |
|
|
|
'''Exceptions thrown while processing and creating the build environment''' |
|
|
|
'''Exceptions thrown while processing and creating the build environment''' |
|
|
|