01: package de.webman.wminstaller.install;
02:
03: public class InstallationException extends Exception {
04: public static final int OK = 0;
05: public static final int WARNING = 1;
06: public static final int FAILED = 2;
07: public static final int FATAL = 3;
08:
09: int severity = OK;
10: String msg = "";
11:
12: public InstallationException(int _severity, String _msg) {
13: msg = _msg;
14: severity = _severity;
15: }
16:
17: public String getMessage() {
18: return msg;
19: }
20:
21: public int getSeverity() {
22: return severity;
23: }
24:
25: public String toString() {
26: return getClass().getName() + ": " + msg + " (" + severity
27: + ")";
28: }
29: }
|