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

Method getStackStraceStr

src/org/apache/pig/impl/util/Utils.java:559–564  ·  view source on GitHub ↗
(Throwable e)

Source from the content-addressed store, hash-verified

557 }
558
559 public static String getStackStraceStr(Throwable e) {
560 ByteArrayOutputStream baos = new ByteArrayOutputStream();
561 PrintStream ps = new PrintStream(baos);
562 e.printStackTrace(ps);
563 return baos.toString();
564 }
565
566 public static boolean isLocal(PigContext pigContext, Configuration conf) {
567 return pigContext.getExecType().isLocal() || conf.getBoolean(PigImplConstants.CONVERTED_TO_LOCAL, false);

Callers 2

setJobExceptionMethod · 0.95
launchPigMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected