2 // System.Web.Compilation.ParseException
5 // Gonzalo Paniagua Javier (gonzalo@ximian.com)
7 // (C) 2003 Ximian, Inc (http://www.ximian.com)
13 namespace System.Web.Compilation
15 internal class ParseException : HtmlizedException
20 public ParseException (ILocation location, string message)
21 : this (location, message, null)
23 location = new Location (location);
27 public ParseException (ILocation location, string message, Exception inner)
28 : base (message, inner)
30 this.location = location;
33 public override string Title {
34 get { return "Parser Error"; }
37 public override string Description {
39 return "Error parsing a resource required to service this request. " +
40 "Review your source file and modify it to fix this error.";
44 public override string ErrorMessage {
45 get { return Message; }
48 public override string SourceFile {
49 get { return FileName; }
52 public override string FileName {
57 return location.Filename;
61 public override string FileText {
70 TextReader reader = new StreamReader (FileName);
71 fileText = reader.ReadToEnd ();
76 public override int [] ErrorLines {
81 return new int [] {location.BeginLine, location.EndLine};
85 public override bool ErrorLinesPaired {