1 using System;
2 using System.Collections;
3
4
5
6
7
8 namespace System.Lex
9 {
10 public class ParsingException : Exception
11 {
12 public ParsingException(const string& message_, const string& fileName_, const Span& span_) :
13 base(message_), message(message_), fileName(fileName_), span(span_), mod(null)
14 {
15 }
16 public ParsingException(const string& message_, const string& fileName_) :
17 base(message_), message(message_), fileName(fileName_), span(), mod(null)
18 {
19 }
20 public const string& Project() const
21 {
22 return project;
23 }
24 public const string& Message() const
25 {
26 return message;
27 }
28 public const string& FileName() const
29 {
30 return fileName;
31 }
32 public const Span& GetSpan() const
33 {
34 return span;
35 }
36 public void* Module() const
37 {
38 return mod;
39 }
40 public void SetModule(void* mod_)
41 {
42 mod = mod_;
43 }
44 public void SetProject(const string& project_)
45 {
46 project = project_;
47 }
48 private string project;
49 private string message;
50 private string fileName;
51 private Span span;
52 private void* mod;
53 }
54 }