Replying to myself here,
the error appears to be completly re-producable here, but it is fixable, it seems (I
found through experimentation) the problem is with haveing the thrown type and the
catched type (both BORKY in the example) the same - CF bawlks at this, if I catch
BORKY and throw BORKY.GOOPY it will catch & work fine, if I then try catching
BORKY.GOOPY instead it will fail again. I can only think that this must be some bug
in CF. Can I assume that not many people use custom exception types ?
On Mon, 22 May 2000 17:15:07 +1200, "James Sleeman" <[EMAIL PROTECTED]> wrote:
>
> The following code is producing a CF error, and some very strange output
> (not what I would expect AT ALL, where the hell does "Hello .. 11" come from
> ?!?!?! ), any ideas why anyone ?
>
> The code
> ---------- CUT HERE ----------
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>
> <html>
> <head>
> <title>Untitled</title>
> </head>
>
> <body>
> <CFLOOP FROM=1 TO=6 INDEX="x">
> <CFOUTPUT>Hello .. #x#<BR></CFOUTPUT>
> </CFLOOP>
>
> <CFLOOP FROM=1 TO=10 INDEX="x">
> <CFOUTPUT>Hoopy .. #x#<BR></CFOUTPUT>
> </CFLOOP>
>
> Hoopy !<BR>
> <CFTRY>
> <CFTHROW TYPE="BORKY" MESSAGE="You blah !" DETAIL="Blah!">
>
> <CFCATCH TYPE="BORKY">
> Hey error boy, what's the error today ?<BR>
> <CFOUTPUT>#CFCATCH.Message#<BR>#CFCATCH.Detail#</CFOUTPUT><BR>
> </CFCATCH>
> </CFTRY>
> La De Da
> </body>
> </html>
> ----------------------------------
>
> The output
> --------- CUT HERE -----------
> Hello .. 1
> Hello .. 2
> Hello .. 3
> Hello .. 4
> Hello .. 5
> Hello .. 6
> Hoopy .. 1
> Hoopy .. 2
> Hoopy .. 3
> Hoopy .. 4
> Hoopy .. 5
> Hoopy .. 6
> Hoopy .. 7
> Hoopy .. 8
> Hoopy .. 9
> Hoopy .. 10
> Hoopy !
> Hello .. 11
> -----------------------------------
>
>
> The error
> -------------------------------------------------
> Error Diagnostic Information
> unknown exception condition
>
> unknown error while executing a tag.
>
>
> Date/Time: 05/22/00 16:52:02
> Browser: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)
> Remote Address: 10.10.10.105
> -----------------------------------------
>
>
> ---
> James Sleeman,
> E-Commerce, Database, Programmer
> Innovative Media Ltd
>
>
> ------------------------------------------------------------------------------
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
>
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.