Package revxrsal.commands.util
Class StackTraceSanitizer
java.lang.Object
revxrsal.commands.util.StackTraceSanitizer
A utility for stripping stacktraces from local paths to classes. This helps
keep errors clean as well as removing unnecessary trace paths which do not
help.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StackTraceSanitizer.Builder
builder()
static StackTraceSanitizer
Returns the default sanitizerstatic StackTraceSanitizer
empty()
Returns the empty sanitizervoid
Strips all the stack trace elements that meet the criteria of any filter.
-
Method Details
-
sanitize
Strips all the stack trace elements that meet the criteria of any filter.- Parameters:
throwable
- Throwable to strip
-
defaultSanitizer
Returns the default sanitizer- Returns:
- The default stack trace sanitizer
-
empty
Returns the empty sanitizer- Returns:
- A sanitizer that does not modify the trace
-
builder
-