m2isar.diagnostics

Stable issue identifiers shared with the MINRES CoreDSL validator.

Attributes

WARNING_ISSUES

Exceptions

M2ValidationError

Common base class for all non-exit exceptions.

M2ParseError

Frontend syntax diagnostic retaining legacy SyntaxError identity.

M2WarningError

A promoted warning, catchable as both a legacy RuntimeError and M2Error.

Module Contents

exception M2ValidationError(message, issue, line_info=None)[source]

Bases: m2isar.M2Error

Common base class for all non-exit exceptions.

issue_code[source]
line_info = None[source]
related_diagnostics = [][source]
__str__()[source]

Return str(self).

exception M2ParseError(message, filename=None, line=None, column=None)[source]

Bases: m2isar.M2SyntaxError

Frontend syntax diagnostic retaining legacy SyntaxError identity.

issue_code = 'org.eclipse.xtext.diagnostics.Diagnostic.Syntax'[source]
file_path = None[source]
source_line = None[source]
source_column = None[source]
WARNING_ISSUES[source]
exception M2WarningError(message, name, line_info=None)[source]

Bases: RuntimeError, m2isar.M2Error

A promoted warning, catchable as both a legacy RuntimeError and M2Error.

warning_name[source]
line_info = None[source]
issue_code = None[source]