Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Treating Errors

 [1/5] from: rondon::andrade::uol::com::br at: 24-Jun-2001 22:02


Hi Folks! How can I treat the Access Error: Network timeout ? Because of our low bandwidth, I receive constantly this error and I have to restart the program, how can I make a persistent (keep alive) access for a number of times until the program by itself gives up the access? Thanks in advance Rondon

 [2/5] from: amicom:sonic at: 25-Jun-2001 14:27


Rondon, Try: errors: 0 while [errors <= 5 error? try [page: read http://www.somesite.com]][ print ["Error #" errors: errors + 1 "reading site"] ] The above will try 5 times to read the site. Hope this helps! -Bo

 [3/5] from: gchiu:compkarori at: 26-Jun-2001 11:01


On Mon, 25 Jun 2001 14:27:04 -0700 (PDT) Bohdan Lechnowsky <[amicom--sonic--net]> wrote:
> The above will try 5 times to read the site. > > Hope this helps! > > -Bo
Hi Bo, Long time no View! -- Graham Chiu

 [4/5] from: rondon:andrade:uol at: 25-Jun-2001 21:04


Thank you very much!!! That's what I need.! Rondon

 [5/5] from: agem:crosswinds at: 26-Jun-2001 2:00


RE: [REBOL] Re: Treating Errors Hi Bo! nive to /view you :) [amicom--sonic--net] wrote:
> Rondon, > Try:
<<quoted lines omitted: 3>>
> ] > The above will try 5 times to read the site.
errors: 0 while [ALL[errors <= 5 error? try [page: read http://www.somesite.com]]][ print ["Error #" errors: errors + 1 "reading site"] ] or has 'while hidden feature? -Volker

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted