]> git.somenet.org - pub/jan/dst18.git/blob - ass2-di/src/main/java/dst/ass2/di/InjectionException.java
Add template for assignment 3
[pub/jan/dst18.git] / ass2-di / src / main / java / dst / ass2 / di / InjectionException.java
1 package dst.ass2.di;
2
3 /**
4  * Thrown whenever an DI problem occurs.
5  */
6 public class InjectionException extends RuntimeException {
7
8     private static final long serialVersionUID = 3221609361590670030L;
9
10     /**
11      * Creates a new instance of <code>InjectionException</code> without detail message.
12      */
13     public InjectionException() {
14     }
15
16     /**
17      * Constructs an instance of <code>InjectionException</code> with the specified detail message.
18      *
19      * @param msg the detail message.
20      */
21     public InjectionException(String msg) {
22         super(msg);
23     }
24
25     /**
26      * Constructs an instance of <code>InjectionException</code> wrapping the specified throwable.
27      *
28      * @param t the throwable to wrap.
29      */
30     public InjectionException(Throwable t) {
31         super(t);
32     }
33 }