add native exception wrapper