wrap the exception to get information about where the exception comes from