[REBOL] Re: Error!
From: ammonjohnson::yahoo::com at: 26-Oct-2001 16:45
I have several error handling fucntions, but what I want is to actually
redefine the system error handler of REBOL. For example:
error-catch: function [] [] [;code that catches error]
;all the error producing code you want
;none of it is printed to console even though
;error-catch hasn't been called at all! (except
; by REBOL)
basically I want to decide what REBOL does with an error reguardless of
where it came from, or who produced it.
Thanks!!
Ammon
PS I guess I will keep browsing the system object till I find it. I know it
is their, Carl wouldn't have left it out.
Enjoy!!
Ammon
---- Original Message -----
From: "Tim Johnson" <[tim--johnsons-web--com]>
To: <[rebol-list--rebol--com]>
Sent: Thursday, October 25, 2001 9:18 PM
Subject: [REBOL] Re: Error!
> On Thu, Oct 25, 2001 at 09:15:15PM -0700, Ammon Johnson wrote:
> >
> > Hi,
> >
> > There has got to be away to change the default error handling
rutine, what is? One of you guys (or gals) surely knows what it is. I
guess really what I am looking for is the word to set, after all, there are
NO RESERVED WORDS, right?
> >
> > Thanks!!
> > Ammon
> Hi Ammon: I'm not sure if I understand your question completely but:
> Here's what I do.
> 1)A (slightly) customized error maker
> 2)An error handling routine
> 3)A try-catch style template
> Error maker
> >
;###########################################################################
###################
> ; toss: Simple error-reporting function. Takes a block to aid message
formatting
> ;
############################################################################
################
> toss: func[err-message[block!]][make error! rejoin err-message]
> ;
> ;Error Handling routine: this is included in the rebol.org script library
> > Author: "Bohdan Lechnowsky"
>
;###########################################################################
#