diff src/nabble/model/UpdatingException.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/model/UpdatingException.java	Thu Mar 21 19:15:52 2019 -0600
@@ -0,0 +1,20 @@
+package nabble.model;
+
+
+public final class UpdatingException extends RuntimeException {
+
+	UpdatingException() {}
+
+	UpdatingException(String msg) {
+		super(msg);
+	}
+
+	public static boolean isIn(Throwable th) {
+		while( th != null ) {
+			if( th instanceof UpdatingException )
+				return true;
+			th = th.getCause();
+		}
+		return false;
+	}
+}