Files
kam-mobile/vendor/kam_remake/src/common/KM_CommonExceptions.pas
T
admin_d 7063d1b1c9
Sync changed files to Google Drive / sync (push) Successful in 1h45m13s
sync: restore source from Google Drive
2026-09-12 16:50:30 +05:00

30 lines
588 B
ObjectPascal

unit KM_CommonExceptions;
{$I KaM_Remake.inc}
interface
uses
SysUtils, KM_Points;
type
//Custom Exception that includes a TKMPoint
ELocError = class(Exception)
Loc: TKMPoint;
constructor Create(const aMsg: UnicodeString; const aLoc: TKMPoint);
end;
// Error while game initialization
// madExcept ignores it, since we just want to show simple message instead
EGameInitError = class(Exception);
implementation
{ ELocError }
constructor ELocError.Create(const aMsg: UnicodeString; const aLoc: TKMPoint);
begin
inherited Create(aMsg);
Loc := aLoc;
end;
end.