MCPcopy Create free account
hub / github.com/e2wugui/zeze / stacktrace

Method stacktrace

ZezeJava/ZezeJava/src/main/java/Zeze/Util/Str.java:75–83  ·  view source on GitHub ↗
(@NotNull Throwable ex)

Source from the content-addressed store, hash-verified

73 }
74
75 public static @NotNull String stacktrace(@NotNull Throwable ex) {
76 try (var out = new ByteArrayOutputStream();
77 var ps = new PrintStream(out, false, StandardCharsets.UTF_8)) {
78 ex.printStackTrace(ps);
79 return out.toString(StandardCharsets.UTF_8);
80 } catch (IOException e) {
81 throw Task.forceThrow(e);
82 }
83 }
84
85 public static @NotNull String fromBinary(@NotNull Binary b) {
86 return new String(b.bytesUnsafe(), b.getOffset(), b.size(), StandardCharsets.UTF_8);

Callers 9

sendTrunkMethod · 0.95
send500Method · 0.95
tryParseLineMethod · 0.95
OnServletListTableMethod · 0.95
OnServletWalkTableMethod · 0.95
OnServletGetValueMethod · 0.95
OnServletPutRecordMethod · 0.95
OnServletDeleteRecordMethod · 0.95
OnServletClearTableMethod · 0.95

Calls 2

forceThrowMethod · 0.95
toStringMethod · 0.45

Tested by 1

sendTrunkMethod · 0.76