BaseException is the exception of MC -framework exceptions. It provides some additional services, which are:
- exception stack: collects nested exceptions
- flush: writes the whole stack to the log with the common id
Flushing should be done by the last handler in the exception chain, who does not throw any more BaseExceptions. There are two kinds of places for that: (1) When you know how to work around the problem and you do not have to throw on any exception, you flush the caught BaseException. (2) If no one can handle the error, the classes in the border line of the portal platform and an external system have to flush the exception and either generate the error message to the user or delegate the error to another system.