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