1 package cz.cuni.amis.pogamut.base.component.exception;
2
3 import java.util.logging.Logger;
4
5 import cz.cuni.amis.pogamut.base.component.bus.exception.FatalErrorPropagatingEventException;
6 import cz.cuni.amis.utils.exception.PogamutException;
7
8 public class ComponentException extends PogamutException {
9
10
11
12
13
14
15
16
17
18 public ComponentException(String message, Object origin) {
19 super(message, origin);
20 }
21
22
23
24
25
26
27
28
29
30
31 public ComponentException(String message, Throwable cause, Object origin) {
32 super(message, (cause instanceof FatalErrorPropagatingEventException && cause.getCause() != null ? cause.getCause() : cause), origin);
33 }
34
35
36
37
38
39
40
41
42
43
44
45 public ComponentException(String message, Logger log, Object origin){
46 super(message, log, origin);
47 }
48
49
50
51
52
53
54
55
56
57
58 public ComponentException(String message, Throwable cause, Logger log, Object origin) {
59 super(message, (cause instanceof FatalErrorPropagatingEventException && cause.getCause() != null ? cause.getCause() : cause), log, origin);
60 }
61
62 }