-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUAnalysisError.pas
More file actions
44 lines (33 loc) · 813 Bytes
/
UAnalysisError.pas
File metadata and controls
44 lines (33 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
unit UAnalysisError;
interface
uses sysutils;
type
EAnalysisError = class(Exception)
public
constructor create(message:string; position:integer); overload;
constructor create(message:string); overload;
function getMessage : string;
function getPosition : integer;
private
position : integer
end;
implementation
constructor EAnalysisError.create(message:string; position:integer);
begin
inherited create(message);
self.position := position;
end;
constructor EAnalysisError.create(message:string);
begin
inherited create(message);
self.position := -1;
end;
function EAnalysisError.getMessage : string;
begin
result := inherited Message;
end;
function EAnalysisError.getPosition : integer;
begin
result := position;
end;
end.