public VBSyntaxErrorException(VBSyntaxErrorCode code, int line, int position, string message, Exception?innerException) : base(message, innerException) { Code = code; Line = line; Position = position; }
private Exception VBSyntaxError(VBSyntaxErrorCode code) { return(new VBSyntaxErrorException( code, CurrentLine, Index - CurrentLineStart)); }
public static string GetString(this ResourceManager manager, VBSyntaxErrorCode code) => manager.GetString(((int)code).ToString());
public VBSyntaxErrorException(VBSyntaxErrorCode code, int line, int position, string message) : this(code, line, position, message, null) { }
public VBSyntaxErrorException(VBSyntaxErrorCode code, int line, int position) : this(code, line, position, VBSyntaxErrorMessages.ResourceManager.GetString(code)) { }