[fpc-pascal] Raise exception in libray which will not halt host application
Michael Van Canneyt
michael at freepascal.org
Thu Aug 26 09:00:49 CEST 2021
On Thu, 26 Aug 2021, LacaK via fpc-pascal wrote:
> Hello,
> is there way how to raise exception in library without using SysUtils?
Raise TMyObject.Create()
Where TMyObject does not descend from Exception.
Sysutils is needed for the definition of the Exception class, and because it
installs some runtime error to exception conversion hooks, but you can
perfectly use exceptions without using the sysutils unit.
Michael.
More information about the fpc-pascal
mailing list