The exception class “Exception” is declared in the unit SysUtils. So you must add “SysUtils” to your uses-clause.
uses
SysUtils;
procedure RaiseMyException;
begin
raise Exception.Create('Hallo World!');
end;
The exception class “Exception” is declared in the unit SysUtils. So you must add “SysUtils” to your uses-clause.
uses
SysUtils;
procedure RaiseMyException;
begin
raise Exception.Create('Hallo World!');
end;