[fpc-pascal] Raise exception in libray which will not halt host application
LacaK
lacak at zoznam.sk
Thu Aug 26 10:10:59 CEST 2021
Thank you for both answers!
L.
>
>
> 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