JOSIF Main Page | JOSIF Guidebook | Modeling | General Patterns | Exceptions
There are two types of common exceptions defined in the Interface Framework, i.e., predefined common exceptions and optional common exceptions.
- The predefined common exceptions are automatically inserted into all operations, with the exception of one-way operations which do not have exceptions at all. These exceptions are listed in Internal Framework Model#Pre-defined Exceptions.
- The optional common exceptions are used as needed for a given operation. They must be explicitly added to an operation. These exceptions are listed inCommon Framework Model#Common Exceptions.
Interface developers should try as much as possible to reuse these common exceptions rather than creating new ones.
Every common exception contains an “error reason” parameter of type String that may be used to supply more information (See details in Internal Framework Model#Pre-defined Exceptions). This information should contain the specific condition(s) that have resulted in the exception as defined in the description part of the associated Use Cases.