1 | /** |
2 | * BSD-style license; for more info see http://xradar.sourceforge.net/license.html |
3 | */ |
4 | package org.sourceforge.xradar; |
5 | |
6 | /** |
7 | * <p>A simple exception class to wrap exception inside |
8 | * XRadar.</p> |
9 | * FIXME: is this really the good way to do it ? |
10 | * |
11 | * @author rpelisse, belaran@gmail.com |
12 | * |
13 | */ |
14 | public class XRadarException extends Exception { |
15 | |
16 | private static final long serialVersionUID = 1L; |
17 | |
18 | /** |
19 | * basic constructor with message |
20 | * @param message, this associated error message |
21 | */ |
22 | public XRadarException(String message) { |
23 | super(message); |
24 | } |
25 | |
26 | /** |
27 | * <p>Constructor with customized message.</p> |
28 | * @param message |
29 | * @param e |
30 | */ |
31 | public XRadarException(String message, Exception e) { |
32 | super(message,e); |
33 | } |
34 | |
35 | /** |
36 | * <p>Constructor with only the original exception.</p> |
37 | * @param e |
38 | */ |
39 | public XRadarException(Exception e) { |
40 | super(e); |
41 | } |
42 | |
43 | } |