[TASK] Streamline exceptions types in Logging API

Resolves: #56998
Releases: master
Change-Id: I8fc06337e652b1778845be960f255f176725361a
Reviewed-on: http://review.typo3.org/28475
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>