From 02bc52037e9ccccca672d6156d9c325c74fe28b3 Mon Sep 17 00:00:00 2001 From: Benjamin Culkin Date: Mon, 1 Jul 2024 17:27:48 -0400 Subject: Update a whole bunch of things Yeah... not a great commit message. t.b.h, I could maybe've split the commit into more parts; but that would be quite a lot off effort and would have a pretty decent chance of at least one of the commits leaving the repository in a non-working state. For the future, will want to try and commit more often so there aren't these mega-commits where it's just "a whole bunch of stuff changed" --- .../java/net/wotonomy/foundation/internal/WotonomyException.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/internal/WotonomyException.java') diff --git a/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/internal/WotonomyException.java b/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/internal/WotonomyException.java index 21b47b3..041a216 100644 --- a/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/internal/WotonomyException.java +++ b/projects/net.wotonomy.foundation/src/main/java/net/wotonomy/foundation/internal/WotonomyException.java @@ -26,7 +26,7 @@ import java.io.PrintWriter; * Behaves as a normal RuntimeException except that it prints a stack trace of * the wrapped throwable if one is specified. * - * Intended to be used anytime you'd report an exception with + * Intended to be used any time you'd report an exception with * System.out.println: that is, for debugging and non-user-visible exceptions. * * @author michael@mpowers.net @@ -35,6 +35,8 @@ import java.io.PrintWriter; */ public class WotonomyException extends RuntimeException { + private static final long serialVersionUID = -7267633105344041941L; + protected String message; protected Throwable wrappedThrowable; @@ -81,6 +83,7 @@ public class WotonomyException extends RuntimeException { return wrappedThrowable; } + @Override public void printStackTrace(PrintWriter s) { if (message != null) { s.println("Exception: " + message); @@ -92,6 +95,7 @@ public class WotonomyException extends RuntimeException { super.printStackTrace(s); } + @Override public void printStackTrace(PrintStream s) { if (message != null) { s.println("Exception: " + message); @@ -103,6 +107,7 @@ public class WotonomyException extends RuntimeException { super.printStackTrace(s); } + @Override public void printStackTrace() { if (message != null) { System.err.println("Exception: " + message); -- cgit v1.2.3