1 package org.objectweb.celtix.tools.common; 2 import org.objectweb.celtix.common.i18n.Message; 3 public class ToolException extends RuntimeException { 4 5 6 private static final long serialVersionUID = -4418907917249006910L; 7 public ToolException() { 8 super(); 9 } 10 public ToolException(Message msg) { 11 super(msg.toString()); 12 } 13 public ToolException(String msg) { 14 super(msg); 15 } 16 17 public ToolException(Message msg, Throwable t) { 18 super(msg.toString(), t); 19 } 20 21 public ToolException(String msg, Throwable t) { 22 super(msg, t); 23 } 24 25 public ToolException(Throwable t) { 26 super(t); 27 } 28 29 30 public String toString() { 31 StringBuffer sb = new StringBuffer (super.getMessage()); 32 33 return sb.toString(); 34 } 35 36 37 38 } 39 40 | Popular Tags |