MCPcopy Create free account
hub / github.com/BaseXdb/basex / toArray

Method toArray

basex-core/src/main/java/org/basex/util/Util.java:272–276  ·  view source on GitHub ↗

Returns a string array representation of the specified throwable. @param throwable throwable @return string array

(final Throwable throwable)

Source from the content-addressed store, hash-verified

270 * @return string array
271 */
272 private static String[] toArray(final Throwable throwable) {
273 final StringList sl = new StringList().add(throwable.toString());
274 for(final StackTraceElement st : throwable.getStackTrace()) sl.add("\tat " + st);
275 return sl.finish();
276 }
277
278 /**
279 * Starts the specified class in a separate process. A -D (daemon) flag will be added to the

Callers 2

bugMethod · 0.95
stackMethod · 0.95

Calls 4

addMethod · 0.95
addMethod · 0.65
toStringMethod · 0.65
finishMethod · 0.45

Tested by

no test coverage detected