(Exception top)
| 44 | } |
| 45 | |
| 46 | public static Exception getPermissionException(Exception top){ |
| 47 | Throwable current = top; |
| 48 | |
| 49 | while (current != null && (current.getMessage() == null || current.getMessage().indexOf("Permission denied") == -1)){ |
| 50 | current = current.getCause(); |
| 51 | } |
| 52 | return (Exception)current; |
| 53 | } |
| 54 | |
| 55 | public static PigException getPigException(Throwable top) { |
| 56 | Throwable current = top; |
no test coverage detected