Clover icon

sunshower-core

  1. Project Clover database Fri Apr 6 2018 03:27:42 UTC
  2. Package io.sunshower.inject

File InjectionException.java

 

Coverage histogram

../../../img/srcFileCovDistChart0.png
60% of files have more coverage

Code metrics

0
11
6
1
48
38
6
0.55
1.83
6
1

Classes

Class Line # Actions
InjectionException 6 11 6
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    package io.sunshower.inject;
2   
3    import java.lang.reflect.Field;
4   
5    /** Created by haswell on 3/5/17. */
 
6    public class InjectionException extends RuntimeException {
7   
8    private final Class<?> current;
9    private final Class<?> target;
10    private final Object instance;
11    private final Field field;
12    private final Object binding;
13   
 
14  0 toggle public <U> InjectionException(
15    Class<?> current,
16    Class<?> target,
17    Object instance,
18    Field field,
19    Object binding,
20    IllegalAccessException e) {
21  0 super(e);
22  0 this.current = current;
23  0 this.target = target;
24  0 this.instance = instance;
25  0 this.field = field;
26  0 this.binding = binding;
27    }
28   
 
29  0 toggle public Class<?> getCurrent() {
30  0 return current;
31    }
32   
 
33  0 toggle public Class<?> getTarget() {
34  0 return target;
35    }
36   
 
37  0 toggle public Object getInstance() {
38  0 return instance;
39    }
40   
 
41  0 toggle public Field getField() {
42  0 return field;
43    }
44   
 
45  0 toggle public Object getBinding() {
46  0 return binding;
47    }
48    }