1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package tsukuba_bunko.resource;
20
21
22 /***
23 * リソースが <code>ResourceManager</code> が利用できない形式である際に
24 * throw される例外です.
25 * @author $Author: ppoi $
26 * @version $Revision: 1.2 $
27 * @see tsukuba_bunko.resource.ResourceLoader
28 */
29 public class IllegalResourceException extends Exception {
30
31 /***
32 * serial version UID
33 */
34 private static final long serialVersionUID = -6759598807838692501L;
35
36 /***
37 * 基の例外オブジェクト
38 */
39 private Exception _source = null;
40
41
42 /***
43 * <code>IllegalResourceException</code> のインスタンスを作成します.
44 */
45 public IllegalResourceException()
46 {
47 super();
48 }
49
50 /***
51 * <code>IllegalResourceException</code> のインスタンスを作成します.
52 * @param message エラーメッセージ
53 */
54 public IllegalResourceException( String message )
55 {
56 super( message );
57 }
58
59 /***
60 * <code>IllegalResourceException</code> のインスタンスを作成します.
61 * @param e 基になる例外オブジェクト
62 */
63 public IllegalResourceException( Exception e )
64 {
65 super( e.getMessage() );
66 _source = e;
67 }
68
69
70 /***
71 * 基になった例外オブジェクトを取得します.
72 * @return 基の例外オブジェクト
73 */
74 public Exception getSourceException()
75 {
76 return _source;
77 }
78 }