OfficeStamperException.java

1
package pro.verron.officestamper.api;
2
3
import java.util.function.Supplier;
4
5
/**
6
 * OfficeStamperException is a subclass of RuntimeException that represents an exception that can be thrown during the
7
 * processing of an Office document using the OfficeStamper library.
8
 * It provides additional constructors to handle different scenarios.
9
 */
10
public class OfficeStamperException
11
        extends RuntimeException {
12
    /**
13
     * OfficeStamperException is a subclass of RuntimeException that represents an exception that can be thrown
14
     * during the processing of an Office document using the OfficeStamper
15
     * library.
16
     *
17
     * @param message a message describing the error
18
     */
19
    public OfficeStamperException(String message) {
20
        super(message);
21
    }
22
23
    /**
24
     * OfficeStamperException is a subclass of RuntimeException that represents an exception that can be thrown
25
     * during the processing of an Office document using the OfficeStamper
26
     * library.
27
     *
28
     * @param cause the cause of the exception
29
     */
30
    public OfficeStamperException(Throwable cause) {
31
        super(cause);
32
    }
33
34
    /**
35
     * OfficeStamperException is a subclass of RuntimeException that represents an exception that can be thrown
36
     * during the processing of an Office document using the OfficeStamper
37
     * library.
38
     *
39
     * @param message a message describing the error
40
     * @param cause   the cause of the exception
41
     */
42
    public OfficeStamperException(String message, Throwable cause) {
43
        super(message, cause);
44
    }
45
46
    /**
47
     * OfficeStamperException is a subclass of RuntimeException
48
     * that represents an exception
49
     * that can be thrown during the processing of an Office document using the OfficeStamper
50
     * library.
51
     */
52
    public OfficeStamperException() {
53
        super("Unexpected exception");
54
    }
55
56
    public static Supplier<OfficeStamperException> throwing(String message) {
57 2 1. lambda$throwing$0 : replaced return value with null for pro/verron/officestamper/api/OfficeStamperException::lambda$throwing$0 → NO_COVERAGE
2. throwing : replaced return value with null for pro/verron/officestamper/api/OfficeStamperException::throwing → SURVIVED
        return () -> new OfficeStamperException(message);
58
    }
59
}

Mutations

57

1.1
Location : lambda$throwing$0
Killed by : none
replaced return value with null for pro/verron/officestamper/api/OfficeStamperException::lambda$throwing$0 → NO_COVERAGE

2.2
Location : throwing
Killed by : none
replaced return value with null for pro/verron/officestamper/api/OfficeStamperException::throwing → SURVIVED
Covering tests

Active mutators

Tests examined


Report generated by PIT 1.17.1