diff options
| author | 2026-07-06 15:42:44 +0200 | |
|---|---|---|
| committer | 2026-07-09 09:59:29 +0200 | |
| commit | 192160541bb31c74468509faf5b19f42b0e4d450 (patch) | |
| tree | fc7f5f673d8cea4636090ffbb7ddc85837f08591 /src/main/java/com/it_jaros/jscanner/ExceptionInfo.java | |
| parent | 2209ed0810ae4220a079a7df0496abed8979ef44 (diff) | |
Reworked exception handling. Collect now only weird exceptions and print
them before results to stderr
Diffstat (limited to 'src/main/java/com/it_jaros/jscanner/ExceptionInfo.java')
| -rw-r--r-- | src/main/java/com/it_jaros/jscanner/ExceptionInfo.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/com/it_jaros/jscanner/ExceptionInfo.java b/src/main/java/com/it_jaros/jscanner/ExceptionInfo.java new file mode 100644 index 0000000..ab92a5b --- /dev/null +++ b/src/main/java/com/it_jaros/jscanner/ExceptionInfo.java @@ -0,0 +1,13 @@ +package com.it_jaros.jscanner; + +public record ExceptionInfo( + String type, + String message +) { + public static ExceptionInfo from(Throwable t) { + return new ExceptionInfo( + t.getClass().getName(), + t.getMessage() + ); + } +}
\ No newline at end of file |
