01: package org.slf4j.migrator;
02:
03: public class ConversionException extends Exception {
04:
05: /**
06: *
07: */
08: private static final long serialVersionUID = 498961799888576668L;
09:
10: private String detail;
11:
12: public static final String NOT_IMPLEMENTED = "Conversion mode not implemented yet";
13: public static final String INVALID_DIRECTORY = "Invalid source directory";
14: public static final String FILE_COPY = "Error during file copy";
15:
16: public ConversionException(String message) {
17: super (message);
18: }
19:
20: public ConversionException(String message, String detail) {
21: super (message);
22: this .detail = detail;
23: }
24:
25: public String getDetail() {
26: return detail;
27: }
28:
29: public void setDetail(String detail) {
30: this .detail = detail;
31: }
32:
33: public void print() {
34: if (getMessage() != null) {
35: System.out.println(getMessage());
36: }
37: }
38:
39: }
|