01: package org.objectweb.celtix.tools.common;
02:
03: import org.objectweb.celtix.common.i18n.Message;
04:
05: public class ToolException extends RuntimeException {
06:
07: private static final long serialVersionUID = -4418907917249006910L;
08:
09: public ToolException() {
10: super ();
11: }
12:
13: public ToolException(Message msg) {
14: super (msg.toString());
15: }
16:
17: public ToolException(String msg) {
18: super (msg);
19: }
20:
21: public ToolException(Message msg, Throwable t) {
22: super (msg.toString(), t);
23: }
24:
25: public ToolException(String msg, Throwable t) {
26: super (msg, t);
27: }
28:
29: public ToolException(Throwable t) {
30: super (t);
31: }
32:
33: public String toString() {
34: StringBuffer sb = new StringBuffer(super.getMessage());
35:
36: return sb.toString();
37: }
38:
39: }
|