[code]
class AException extends Exception {
    private static String message = "A Exception!"; public SLException(String msg) {
super(message + msg);
}
}class BException extends AException {
      private static String message = "B Exception!"; public SLException(String msg) {
super(message + msg);
}
}这样如果是
try {
} catch (BException e) {
System.out.println(e);
}就会显示:A Exception: B Exception....其实我是想如果是BException 就只显示 B Exception..只是B和A是有继承关系,message不要叠加,不知道有什么方法可以满足这样的需求?