Added a method to wrap native exceptions