1 23 package org.objectweb.jorm; 24 25 import org.objectweb.jorm.api.PException; 26 27 31 public class ExceptionHelper { 32 33 public static Exception getFirstException(Exception e) { 34 Exception current = e; 35 while (current instanceof PException 36 && ((PException) current).getNestedException()!=null) { 37 current = ((PException) current).getNestedException(); 38 } 39 return current; 40 } 41 } 42 | Popular Tags |