File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/com/diffblue/cover/annotations Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 93
93
* @return exception type to throw when the mocked {@link #method()} is called. Defaults to {@link
94
94
* NoException} to indicate no exception should be thrown.
95
95
*/
96
- Class <?> throwException () default NoException .class ;
96
+ Class <? extends Throwable > throwException () default NoException .class ;
97
97
98
98
/**
99
99
* @return fully qualified name of the factory method used to create the exception to throw when
Original file line number Diff line number Diff line change 18
18
* Marker class used to indicate that no exception should be thrown by default in {@link
19
19
* com.diffblue.cover.annotations.InTestsMock#throwException()}.
20
20
*/
21
- public final class NoException {
21
+ public final class NoException extends Throwable {
22
22
private NoException () {
23
23
// This class should not be instantiated.
24
24
}
You can’t perform that action at this time.
0 commit comments