Now that I have begun to delve deeper into CFC development, and the Object Oriented model, I have run into a speedbump.

I have a cffunction that is recursive, and along the path of processing there are several errors checks that occur. Some minor, that continue processing, and some major that halt processing. Now, I need to find a smart way to handle these errors. Does anyone have an idea? A struct, array, string,db ??? How should the data set be structured??? I want to be able to return all non-critical errors to the user, and only abort if there is a critical error.

Also, there's been much coverage on using VAR to keep the scope of a variable local to a CFFUNCTION instance, but how can I make sure that my variable spans the scope of the entire call (including recursions), without scoping any other calls? Should I use a Request scope, or is there something better? I fear using session scope as the user may have multiple requests to my CFC running concurrently.

TIA,
Igor
cccfug.org
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to