View Javadoc
1   package com.github.celldynamics.quimp.plugin.randomwalk;
2   
3   import com.github.celldynamics.quimp.plugin.QuimpPluginException;
4   
5   /**
6    * Exception class for Random Walker plugin. Redirect all exceptions to GUI.
7    * 
8    * @author p.baniukiewicz
9    *
10   */
11  public class RandomWalkException extends QuimpPluginException {
12  
13    /**
14     * Construct exception with given sink type.
15     * 
16     * @param type exception sink.
17     */
18    public RandomWalkException(MessageSinkTypes type) {
19      super(type);
20    }
21  
22    /**
23     * Construct exception with given sink type and message.
24     * 
25     * @param message message
26     * @param type sink type
27     */
28    public RandomWalkException(String message, MessageSinkTypes type) {
29      super(message, type);
30    }
31  
32    /**
33     * Construct exception with given sink type, message and cause.
34     * 
35     * @param message message
36     * @param cause cause
37     * @param type sink type
38     */
39    public RandomWalkException(String message, Throwable cause, MessageSinkTypes type) {
40      super(message, cause, type);
41    }
42  
43    /**
44     * Construct exception with given sink type and cause.
45     * 
46     * @param cause cause
47     * @param type sink type
48     */
49    public RandomWalkException(Throwable cause, MessageSinkTypes type) {
50      super(cause, type);
51    }
52  
53    /** The Constant serialVersionUID. */
54    private static final long serialVersionUID = -29506627099108519L;
55  
56    /**
57     * Default exception with sink set to GUI.
58     */
59    public RandomWalkException() {
60      super(MessageSinkTypes.GUI);
61    }
62  
63    /**
64     * Construct exception.
65     * 
66     * @param message message
67     * @param cause cause
68     * @param enableSuppression enableSuppression
69     * @param writableStackTrace writableStackTrace
70     */
71    public RandomWalkException(String message, Throwable cause, boolean enableSuppression,
72            boolean writableStackTrace) {
73      super(message, cause, enableSuppression, writableStackTrace);
74    }
75  
76    /**
77     * Construct exception with default sin set to GUI.
78     * 
79     * @param message message
80     * @param cause cause
81     */
82    public RandomWalkException(String message, Throwable cause) {
83      super(message, cause, MessageSinkTypes.GUI);
84    }
85  
86    /**
87     * Construct exception with default sin set to GUI.
88     * 
89     * @param message message
90     */
91    public RandomWalkException(String message) {
92      super(message, MessageSinkTypes.GUI);
93    }
94  
95    /**
96     * Construct exception with default sin set to GUI.
97     * 
98     * @param cause cause
99     */
100   public RandomWalkException(Throwable cause) {
101     super(cause, MessageSinkTypes.GUI);
102   }
103 
104 }