From: "G.B." <bauhaus@futureapps.invalid>
Subject: Re: Error "exception not permitted here" when putting EXCEPTION in a loop
Date: Fri, 17 Jul 2015 17:58:17 +0200
Date: 2015-07-17T17:58:17+02:00 [thread overview]
Message-ID: <mob8k0$jom$1@dont-email.me> (raw)
In-Reply-To: <db4edc22-34ef-4f09-b2b4-65f7ba00540b@googlegroups.com>
On 17.07.15 17:47, Trish Cayetano wrote:
> Hi,
>
> I am getting error "exception not permitted here" when running below in a loop.
> Well it runs if I put it outside the loop but I need it inside the loop...
>
> exception
> when ADA.IO_EXCEPTIONS.DATA_ERROR =>
> Ada.Text_IO.Put_Line ("Try a number from 1 to 4, Buddy");
>
> Thanks in advance for your help...
>
does it look like
loop
...
exception ...
...
end loop
If so, then note that "exception" must be in a block,
such as a procedure body, or a block statement (LRM 5.6):
loop
begin
... -- handled sequence of statements
exception ...
...
end;
end loop
More complete examples would help reducing guess work.
next prev parent reply other threads:[~2015-07-17 15:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-17 15:47 Error "exception not permitted here" when putting EXCEPTION in a loop Trish Cayetano
2015-07-17 15:56 ` David Botton
2015-07-17 15:58 ` G.B. [this message]
2015-07-18 8:14 ` Trish Cayetano
2015-07-18 10:08 ` Björn Lundin
2015-07-18 12:41 ` Trish Cayetano
2015-07-18 13:56 ` Björn Lundin
2015-07-18 14:08 ` Niklas Holsti
2015-07-18 14:56 ` Björn Lundin
2015-07-18 14:32 ` Trish Cayetano
2015-07-18 14:59 ` Björn Lundin
2015-07-18 16:09 ` Dennis Lee Bieber
2015-07-18 18:11 ` Niklas Holsti
2015-07-18 21:16 ` Dennis Lee Bieber
2015-07-17 16:02 ` Björn Lundin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox