In the LED_Demo STM32 example project I have the following code (which compiles in GPS):
procedure Does_Nothing is
begin
Null;
exception
when others =>
Null;
end Does_Nothing;
If I modify the same code to the code below, it does not compile. I get the error "violation of restriction No_Exception_Propagation".
procedure Does_Nothing is
begin
Null;
exception
when Error: others =>
UART.Put(Exception_Information(Error));
end Does_Nothing;
Could someone explain why this is the case?