+ public Location Location {
+ get { return location; }
+ set { location = value; }
+ }
+
+ public string FilePath {
+ get { return file_path; }
+ set { file_path = value; }
+ }
+
+ public override string ToString ()
+ {
+ string location_str = " : ";
+ if (location != null)
+ location_str = " (" + location.line + ", " + location.column + ") : ";
+
+ return String.Format ("{0}{1}Error : {2}",
+ (file_path != null ? file_path : ""), location_str, message);
+ }
+