Error! Near: ???
[1/3] from: ammonjohnson:y:ahoo at: 22-Nov-2001 18:57
Hi,
I am trying to create an Error!, but the darn thing always show my Make Error! code as
the *Near* value. Is there some way to set the Near Value?
Thanks!!
Ammon
[2/3] from: lmecir:mbox:vol:cz at: 23-Nov-2001 9:42
Hi Ammon,
there are two ways how to do it. The first one:
f: func [[catch] x] [
if x = 1 throw make error! {x is equal to one!}
]
f 1
** User Error: x is equal to one!
** Near: f 1
the second one is:
disarmed: disarm err: make error! {this error}
disarmed/near: [my near]
err
** User Error: this error
** Near: my near
Cheers
Ladislav
----- Original Message -----
From: "Ammon Johnson" <[ammonjohnson--yahoo--com]>
To: <[rebol-list--rebol--com]>
Sent: Friday, November 23, 2001 2:57 AM
Subject: [REBOL] Error! Near: ???
Hi,
I am trying to create an Error!, but the darn thing always show my Make
Error! code as the *Near* value. Is there some way to set the Near Value?
Thanks!!
Ammon
[3/3] from: ammonjohnson::yahoo::com at: 23-Nov-2001 17:08
Thanks!!
Ammon