|Ada 95 Quality and Style Guide||Chapter 7|
7.5.2 Implementation-Specific Exceptions
Do not raise implementation-specific exceptions.
Convert implementation-specific exceptions within interface packages to visible user-defined exceptions.
No exception defined specifically by an implementation can be guaranteed to be portable to other implementations whether or not they are from the same vendor. Not only may the names be different, but the range of conditions triggering the exceptions may be different also.
If you create interface packages for the implementation-specific portions of your program, those packages can catch or recognize implementation-specific exceptions and convert them into user-defined exceptions that have been declared in the specification. Do not allow yourself to be forced to find and change the name of every handler you have written for these exceptions when the program is ported.
|< Previous Page||Search||Contents||Index||Next Page >|