Software version 8.4
2022-01-07
Table of Contents
- Introduce Central Exception Reporting
- How to introduce/use MulTEx in the API layers
-
- What is a MulTEx exception?
- How to declare a MulTEx exception with an internationalizable message text pattern
- How to imlement negative business rules by throwing Exc-objects
- How to implement exception chaining by throwing a Failure object
- How to cope with many Failure causes (list exceptions, exception treeing)
The main goal of this user's guide is to tell, how to quickly introduce robust and diagnostic exception handling and reporting into a Java software system.
These hints are easier to follow, if you are writing a software system from scratch, but can be applied onto existing software, as well.
You should introduce it according to these priorities:
-
introduce central exception reporting,
-
assure exception propagation to the highest possible level,
-
provide all exceptions with diagnostic parameters,
-
provide natural message texts for all execptions.