1 16 19 20 package org.apache.xalan.xsltc.compiler; 21 22 25 public final class CompilerException extends Exception { 26 27 private String _msg; 28 29 public CompilerException() { 30 super(); 31 } 32 33 public CompilerException(Exception e) { 34 super(e.toString()); 35 _msg = e.toString(); 36 } 37 38 public CompilerException(String message) { 39 super(message); 40 _msg = message; 41 } 42 43 public String getMessage() { 44 final int col = _msg.indexOf(':'); 45 46 if (col > -1) 47 return(_msg.substring(col)); 48 else 49 return(_msg); 50 } 51 } 52 | Popular Tags |