throw vs the result

xbury.cs at clearstream.com xbury.cs at clearstream.com
Mon May 2 02:59:43 EDT 2005


Interesting coincidence...

This came into my mailbox today...

although it's for C++, it's quite to the point...
http://www.informit.com/articles/article.asp?p=373340&seqNum=2

quote:
Report an error (e.g., write throw ) wherever a function detects an error that it cannot resolve itself and 
that makes it impossible for the function to continue execution. (See Item 
70)
Handle an error (e.g., write a catch that doesn't rethrow the same or another exception or emit another kind of 
error code) in the places that have sufficient knowledge to handle the 
error, including to enforce boundaries defined in the error policy (e.g., 
on main and thread mainlines; see Item 62) and to absorb errors in the bodies of 
destructors and deallocation operations.
end quote

cheers
Xavier



-----------------------------------------
Visit us at http://www.clearstream.com
IMPORTANT MESSAGE    Internet communications are not secure and therefore
Clearstream International does not accept legal responsibility for the
contents of this message.    The information contained in this e-mail is
confidential and may be legally privileged. It is intended solely for the
addressee. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically states
them to be the views of Clearstream International or of any of its
affiliates or subsidiaries.    END OF DISCLAIMER


More information about the Use-livecode mailing list