comparison src/nabble/naml/compiler/TemplateRuntimeException.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.naml.compiler;
2
3
4 public class TemplateRuntimeException extends RuntimeException {
5
6 public TemplateRuntimeException(Exception cause) {
7 super(hideNull(cause.getMessage())+StackTrace.current(),cause);
8 }
9
10 public TemplateRuntimeException(String msg,Exception cause) {
11 super(hideNull(msg)+StackTrace.current(),cause);
12 }
13
14 public TemplateRuntimeException(String msg) {
15 super(hideNull(msg)+StackTrace.current());
16 }
17
18 protected TemplateRuntimeException() {}
19
20 private static String hideNull(String s) {
21 return s==null ? "" : s;
22 }
23 }