public VBSyntaxErrorException(VBSyntaxErrorCode code, int line, int position, string message, Exception?innerException)
     : base(message, innerException)
 {
     Code     = code;
     Line     = line;
     Position = position;
 }
예제 #2
0
 private Exception VBSyntaxError(VBSyntaxErrorCode code)
 {
     return(new VBSyntaxErrorException(
                code, CurrentLine, Index - CurrentLineStart));
 }
예제 #3
0
 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))
 {
 }