ENGINE-1500 : Add log when throw UndeclaredThrowableException