Proposal: Extensible exceptions
Johannes Waldmann
waldmann at imn.htwk-leipzig.de
Mon Jul 7 08:22:02 EDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>> In Modula-3 you have to add the exceptions that can be raised to a
>> PROCEDURE header. Java has adopted this mechanism.
>
> Many people argue that this was a mistake [...]
well, i nthe first place, the application should not raise
exceptions that the API user can or should not know about.
if exceptions don't need to be declared, then this design error
(lack of abstraction) can go undetected, but that does not solve it.
regards, J.W.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iEYEARECAAYFAkhyCmoACgkQDqiTJ5Q4dm936QCgowTWscNlgCLUBw6Zr0yyAL9l
+ncAn23ww2FACJAKBBzmCUDo87ZPq0oI
=o5SP
-----END PGP SIGNATURE-----
More information about the Libraries
mailing list