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

Method bug

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

Returns an information string for an unexpected exception. @param throwable exception @return dummy object

(final Throwable throwable)

Source from the content-addressed store, hash-verified

38 * @return dummy object
39 */
40 public static String bug(final Throwable throwable) {
41 final TokenBuilder tb = new TokenBuilder().add(S_BUGINFO).add(NL);
42 tb.add("Contact: ").add(MAILING_LIST).add(NL);
43 tb.add("Version: ").add(TITLE).add(NL);
44 tb.add("Java: ").add(Prop.JAVA_VENDOR).add(", ").add(Prop.JAVA_VERSION).add(NL);
45 tb.add("OS: ").add(Prop.OS).add(", ").add(Prop.OS_ARCH).add(NL);
46 tb.add("Stack Trace:");
47 for(final String string : toArray(throwable)) tb.add(NL).add(string);
48 return tb.toString();
49 }
50
51 /**
52 * Throws a runtime exception for an unexpected exception.

Callers 4

serviceMethod · 0.95
runMethod · 0.95
executeMethod · 0.95
queryMethod · 0.95

Calls 4

addMethod · 0.95
toArrayMethod · 0.95
toStringMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected