MCPcopy Create free account
hub / github.com/davidgiven/luje / toString

Method toString

lib/java/lang/Throwable.java:323–332  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

321// }
322
323 @Override
324 public String toString() {
325 String msg = getLocalizedMessage();
326 String name = getClass().getName();
327 if (msg == null) {
328 return name;
329 }
330 return new StringBuilder(name.length() + 2 + msg.length()).append(name).append(": ")
331 .append(msg).toString();
332 }
333
334 /**
335 * Initializes the cause of this {@code Throwable}. The cause can only be

Callers

nothing calls this directly

Calls 6

getLocalizedMessageMethod · 0.95
lengthMethod · 0.95
getClassMethod · 0.80
toStringMethod · 0.65
appendMethod · 0.65
getNameMethod · 0.45

Tested by

no test coverage detected