public LanguageException(string message, BlameSeverity severity, Span span) { Severity = severity; Span = span; Message = message; StackTrace = new StackTrace(2).ToString(); }
public LanguageException( BlameType type, BlameSeverity severity, Position start, Position end ) { Severity = severity; Span = new Span(start, end); Message = TypeToMessage(type); StackTrace = new StackTrace(2).ToString(); }