1 package org.andromda.core.repository;
2
3
4
5
6
7
8
9
10 public final class RepositoryFacadeException
11 extends RuntimeException
12 {
13 private static final long serialVersionUID = 34L;
14
15
16
17
18
19 public RepositoryFacadeException(String message)
20 {
21 super(message);
22 }
23
24
25
26
27
28
29 public RepositoryFacadeException(final Throwable parent)
30 {
31 super(parent);
32 }
33
34
35
36
37
38
39
40 public RepositoryFacadeException(
41 String message,
42 Throwable cause)
43 {
44 super(message,
45 getRootCause(cause));
46 }
47
48 private static Throwable getRootCause(final Throwable throwable)
49 {
50 Throwable cause = throwable;
51 if (cause.getCause() != null)
52 {
53 cause = cause.getCause();
54 cause = getRootCause(cause);
55 }
56 return cause;
57 }
58 }