Rescue ignored

6 messages Options
Embed this post
Permalink
technoben59

Rescue ignored

Reply Threaded More More options
Print post
Permalink

Hi! I'm trying to restore data from a file saved
with{STORABLE}.basic_store.

If the file is consistent, the system works well, otherwise I get an
"Unhandled exception: External event" ignoring my rescue clause.

The code is

storage: RAW_FILE
...
open is
      local
          storable: STORABLE
          invalid_database: BOOLEAN
      do
          if invalid_database then
          else
             Create storable
             database ?= storable.retrieve_by_name (storage.name)
          end
      rescue
          invalid_database := True
          retry
      end

Environment: Windows 2000 SP4 / EiffelStudio 6.4 / Default compiler /
base, time, wel, wel_pre libraries.

Any help? Thank you.



[Non-text portions of this message have been removed]

Colin LeMahieu

Re: Rescue ignored

Reply Threaded More More options
Print post
Permalink
The IDE will pause on an exception by default, are you sure it's ignoring
your rescue clause or just pausing when the exception is thrown.

On Sat, Sep 19, 2009 at 12:47 PM, technoben59 <[hidden email]> wrote:

>
>
>
> Hi! I'm trying to restore data from a file saved
> with{STORABLE}.basic_store.
>
> If the file is consistent, the system works well, otherwise I get an
> "Unhandled exception: External event" ignoring my rescue clause.
>
> The code is
>
> storage: RAW_FILE
> ...
> open is
> local
> storable: STORABLE
> invalid_database: BOOLEAN
> do
> if invalid_database then
> else
> Create storable
> database ?= storable.retrieve_by_name (storage.name)
> end
> rescue
> invalid_database := True
> retry
> end
>
> Environment: Windows 2000 SP4 / EiffelStudio 6.4 / Default compiler /
> base, time, wel, wel_pre libraries.
>
> Any help? Thank you.
>
> [Non-text portions of this message have been removed]
>
>  
>


[Non-text portions of this message have been removed]

technoben59

Re: Rescue ignored

Reply Threaded More More options
Print post
Permalink


It stops execution showing the exception... :)

--- In [hidden email], Colin LeMahieu <clemahieu@...>
wrote:
>
> The IDE will pause on an exception by default, are you sure it's
ignoring

> your rescue clause or just pausing when the exception is thrown.
>
> On Sat, Sep 19, 2009 at 12:47 PM, technoben59 technoben59@... wrote:
>
> >
> >
> >
> > Hi! I'm trying to restore data from a file saved
> > with{STORABLE}.basic_store.
> >
> > If the file is consistent, the system works well, otherwise I get an
> > "Unhandled exception: External event" ignoring my rescue clause.



Colin LeMahieu

Re: Re: Rescue ignored

Reply Threaded More More options
Print post
Permalink
I should have included this tip in the first place.  Under Execution ->
Exception Handling you can tell the IDE to ignore certain exception types.

On Sat, Sep 19, 2009 at 2:37 PM, technoben59 <[hidden email]> wrote:

>
>
>
>
> It stops execution showing the exception... :)
>
> --- In [hidden email] <eiffel_software%40yahoogroups.com>,
> Colin LeMahieu <clemahieu@...>
> wrote:
>
> >
> > The IDE will pause on an exception by default, are you sure it's
> ignoring
> > your rescue clause or just pausing when the exception is thrown.
> >
> > On Sat, Sep 19, 2009 at 12:47 PM, technoben59 technoben59@... wrote:
> >
> > >
> > >
> > >
> > > Hi! I'm trying to restore data from a file saved
> > > with{STORABLE}.basic_store.
> > >
> > > If the file is consistent, the system works well, otherwise I get an
> > > "Unhandled exception: External event" ignoring my rescue clause.
>
>  
>


[Non-text portions of this message have been removed]

technoben59

Re: Rescue ignored

Reply Threaded More More options
Print post
Permalink

You are right about IDE pausing. I didn't know that I could continue
execution after that type of error. Thank you very much for your
interest. Bye


--- In [hidden email], Colin LeMahieu <clemahieu@...>
wrote:
>
> I should have included this tip in the first place. Under Execution ->
> Exception Handling you can tell the IDE to ignore certain exception
types.

>
> On Sat, Sep 19, 2009 at 2:37 PM, technoben59 technoben59@... wrote:
>
> >
> >
> >
> >
> > It stops execution showing the exception... :)
> >
> > --- In [hidden email]
<eiffel_software%40yahoogroups.com>,

> > Colin LeMahieu clemahieu@
> > wrote:
> >
> > >
> > > The IDE will pause on an exception by default, are you sure it's
> > ignoring
> > > your rescue clause or just pausing when the exception is thrown.
> > >
> > > On Sat, Sep 19, 2009 at 12:47 PM, technoben59 technoben59@ wrote:
> > >



technoben59

Re: Rescue ignored

Reply Threaded More More options
Print post
Permalink
In reply to this post by Colin LeMahieu

You are right about IDE pausing. I didn't know that I could continue
execution after that type of error. Thank you very much for your
interest. Bye


--- In [hidden email], Colin LeMahieu <clemahieu@...>
wrote:
>
> I should have included this tip in the first place. Under Execution ->
> Exception Handling you can tell the IDE to ignore certain exception
types.

>
> On Sat, Sep 19, 2009 at 2:37 PM, technoben59 technoben59@... wrote:
>
> >
> >
> >
> >
> > It stops execution showing the exception... :)
> >
> > --- In [hidden email]
<eiffel_software%40yahoogroups.com>,

> > Colin LeMahieu clemahieu@
> > wrote:
> >
> > >
> > > The IDE will pause on an exception by default, are you sure it's
> > ignoring
> > > your rescue clause or just pausing when the exception is thrown.
> > >
> > > On Sat, Sep 19, 2009 at 12:47 PM, technoben59 technoben59@ wrote:
> > >