Optimized exception handling by implementing 'util' lib

Signed-off-by: phillippohl <phillipp-ohl@web.de>