MCPcopy Create free account
hub / github.com/apache/pig / getPermissionException

Method getPermissionException

src/org/apache/pig/impl/util/LogUtils.java:46–53  ·  view source on GitHub ↗
(Exception top)

Source from the content-addressed store, hash-verified

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;

Callers 1

writeLogMethod · 0.95

Calls 2

getMessageMethod · 0.45
getCauseMethod · 0.45

Tested by

no test coverage detected