I hear you - but I don't necessarily think that FB should encompass
error handling - too many situations where errors could conceivably
occur ("why would you catch one error type with the framework but not
another") and depending on implementation, could become a problem if you
need to implement your own error handling.
Easy enough to fix the problem yourself - use standard error handling
techniques to trap and redirect to a "global" default fuseaction.
By the way, if it was handled automatically by the core files, how would
it know which circuit to use? You can't call a defaultcase fuseaction
unless you know the circuit, and you don't know the circuit b/c the dot
is missing.
---
Billy Cravens
-----Original Message-----
From: Justin Scott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 10:50 AM
To: [EMAIL PROTECTED]
Subject: Invalid Fuseaction Handling
I'm just getting into Fusebox 3.x development and have come across
something
I would like some input on. In FB 3, the "circuit.fuse" method of
handling
the fuseaction attribute is great, but if the value passed is missing a
period, an error is generated instead of execution being passed to the
cfdefaultcase in the switch. This bothers me, as it creates a very easy
opportunity for someone to generate a CF error on purpose.
I have determined that a simple change to the core fusebox code (in
section
8) to handle this specifically would work, but everything I've read says
to
NOT change the core code or weird/bad/evil things may happen.
I'm wondering if anyone else sees this as a big issue and how you handle
it,
core code mods or not. Thanks!
-Justin Scott, Lead Developer
Sceiron Internet Services, Inc.
http://www.sceiron.com
PS: I'm new on the list, so I'm sorry if this has been covered already.
==^================================================================
This email was sent to: [email protected]
EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]
T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================