Mercurial Hosting > nabble
diff src/nabble/naml/compiler/CompileException.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/naml/compiler/CompileException.java Thu Mar 21 19:15:52 2019 -0600 @@ -0,0 +1,16 @@ +package nabble.naml.compiler; + + +public class CompileException extends Exception { + public final StackTrace stackTrace; + + public CompileException(StackTrace stackTrace,String msg) { + super(msg+stackTrace); + this.stackTrace = new StackTrace(stackTrace); + } + + public CompileException(StackTrace stackTrace,String msg,Exception e) { + super(msg+stackTrace,e); + this.stackTrace = new StackTrace(stackTrace); + } +}