diff src/nabble/view/lib/MinorServletException.java @ 0:7ecd1a4ef557

add content
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 21 Mar 2019 19:15:52 -0600
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/nabble/view/lib/MinorServletException.java	Thu Mar 21 19:15:52 2019 -0600
@@ -0,0 +1,21 @@
+package nabble.view.lib;
+
+import javax.servlet.ServletException;
+
+
+public final class MinorServletException extends ServletException {
+
+	MinorServletException(Throwable cause) {
+		super(cause);
+	}
+
+	public static boolean isIn(Throwable th) {
+		while( th != null ) {
+			if( th instanceof MinorServletException )
+				return true;
+			th = th.getCause();
+		}
+		return false;
+	}
+
+}