m2isar.diagnostics
Stable issue identifiers shared with the MINRES CoreDSL validator.
Attributes
Exceptions
Common base class for all non-exit exceptions. |
|
Frontend syntax diagnostic retaining legacy SyntaxError identity. |
|
A promoted warning, catchable as both a legacy RuntimeError and M2Error. |
Module Contents
- exception M2ValidationError(message, issue, line_info=None)[source]
Bases:
m2isar.M2ErrorCommon base class for all non-exit exceptions.
- exception M2ParseError(message, filename=None, line=None, column=None)[source]
Bases:
m2isar.M2SyntaxErrorFrontend syntax diagnostic retaining legacy SyntaxError identity.
- exception M2WarningError(message, name, line_info=None)[source]
Bases:
RuntimeError,m2isar.M2ErrorA promoted warning, catchable as both a legacy RuntimeError and M2Error.