Re: Exceptions
- From: "Dmitry A. Kazakov" <mailbox@xxxxxxxxxxxxxxxxx>
- Date: Fri, 7 Dec 2007 09:54:36 +0100
On Thu, 06 Dec 2007 15:24:44 -0600, tmoran@xxxxxxx wrote:
Is there any way to force programmers to catch exception that
your function throws?
Do you mean force them to write code like:
begin
y := func(x);
exception
when funcs_important_exception=>null; -- ignore unimportant exception
end;
Semantics of exception handling is a different story. When a contract is
satisfied, its implementation can still be incorrect.
When "a way to force" reads "exceptions contract", then the answer is no,
there is no way, alas.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.
- Follow-Ups:
- Re: Exceptions
- From: Randy Brukardt
- Re: Exceptions
- From: Georg Bauhaus
- Re: Exceptions
- References:
- Exceptions
- From: shaunpatterson
- Re: Exceptions
- From: tmoran
- Exceptions
- Prev by Date: Re: ObjectAda 7.2.2 and VB6 DLLs
- Next by Date: Re: Exceptions
- Previous by thread: Re: Exceptions
- Next by thread: Re: Exceptions
- Index(es):