Print Class — spring-boot Architecture
Architecture documentation for the Print class in StandardStackTracePrinter.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/logging/StandardStackTracePrinter.java lines 324–364
private record Print(String indent, String caption, Output output) {
void circularReference(String hashPrefix, String throwable) throws IOException {
this.output.println(this.indent, this.caption + "[CIRCULAR REFERENCE: " + hashPrefix + throwable + "]");
}
void thrown(String hashPrefix, String throwable) throws IOException {
this.output.println(this.indent, this.caption + hashPrefix + throwable);
}
void at(String frame) throws IOException {
this.output.println(this.indent, "\tat " + frame);
}
void omittedFilteredFrames(int filteredFrameCount) throws IOException {
if (filteredFrameCount > 0) {
this.output.println(this.indent, "\t... " + filteredFrameCount + " filtered");
}
}
void omittedCommonFrames(int commonFrameCount) throws IOException {
this.output.println(this.indent, "\t... " + commonFrameCount + " more");
}
Print withCausedByCaption(@Nullable StackTrace causedBy) {
return withCaption(causedBy != null, "", "Caused by: ");
}
Print withWrappedByCaption(@Nullable StackTrace wrappedBy) {
return withCaption(wrappedBy != null, "", "Wrapped by: ");
}
public Print withSuppressedCaption() {
return withCaption(true, "\t", "Suppressed: ");
}
private Print withCaption(boolean test, String extraIndent, String caption) {
return (test) ? new Print(this.indent + extraIndent, caption, this.output) : this;
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free