comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:7ecd1a4ef557
1 package nabble.model;
2
3
4 public final class UpdatingException extends RuntimeException {
5
6 UpdatingException() {}
7
8 UpdatingException(String msg) {
9 super(msg);
10 }
11
12 public static boolean isIn(Throwable th) {
13 while( th != null ) {
14 if( th instanceof UpdatingException )
15 return true;
16 th = th.getCause();
17 }
18 return false;
19 }
20 }