Place {$MODE OBJFPC} or {$MODE DELPHI} beneath your program declaration.
The reason is that by default the compiler will compile in MODE FPC, which does not support exceptions.
More on the subject can be read
here in the user's guide.
Edit: Or perhaps even better explained,
here in the programmers guide.