View Javadoc
1   package com.github.celldynamics.quimp;
2   
3   /**
4    * Exception thrown by BOA class. Uses {@link QuimpException.MessageSinkTypes#CONSOLE} as sink.
5    * 
6    * <p>Contains additional information on frame and type.
7    * 
8    * @author rtyson
9    *
10   */
11  public class BoaException extends QuimpException {
12  
13    private static final long serialVersionUID = 1L;
14    private int frame = 0;
15    private int type;
16  
17    /**
18     * Create exception object for given frame and type.
19     * 
20     * @param msg message
21     * @param f frame
22     * @param t type
23     */
24    public BoaException(String msg, int f, int t) {
25      super(msg);
26      frame = f;
27      type = t;
28    }
29  
30    /**
31     * Create exception object.
32     * 
33     * @param string message
34     */
35    public BoaException(String string) {
36      super(string);
37    }
38  
39    /**
40     * Get frame.
41     * 
42     * @return frame
43     */
44    public int getFrame() {
45      return frame;
46    }
47  
48    /**
49     * Set frame.
50     * 
51     * @param frame frame
52     * 
53     */
54    public void setFrame(int frame) {
55      this.frame = frame;
56    }
57  
58    /**
59     * Get type.
60     * 
61     * @return type
62     */
63    public int getType() {
64      return type;
65    }
66  
67    /**
68     * BoaException.
69     * 
70     */
71    public BoaException() {
72      super();
73    }
74  
75    /**
76     * BoaException.
77     * 
78     * @param message message
79     * @param cause cause
80     * @param enableSuppression enableSuppression
81     * @param writableStackTrace writableStackTrace
82     */
83    public BoaException(String message, Throwable cause, boolean enableSuppression,
84            boolean writableStackTrace) {
85      super(message, cause, enableSuppression, writableStackTrace);
86    }
87  
88    /**
89     * BoaException.
90     * 
91     * @param message message
92     * @param cause cause
93     */
94    public BoaException(String message, Throwable cause) {
95      super(message, cause);
96    }
97  
98    /**
99     * BoaException.
100    * 
101    * @param cause cause
102    */
103   public BoaException(Throwable cause) {
104     super(cause);
105   }
106 
107 }