UtilsException.java

1
package pro.verron.officestamper.utils;
2
3
import java.util.function.Supplier;
4
5
/// Exception thrown when an error occurs in the utils module.
6
public class UtilsException
7
        extends RuntimeException {
8
9
    /// Constructs a new UtilsException with the specified detail message.
10
    ///
11
    /// @param message the detail message
12
    public UtilsException(String message) {
13
        super(message);
14
    }
15
16
17
    /// Constructs a new UtilsException with the specified cause.
18
    ///
19
    /// @param t the cause of the exception
20
    public UtilsException(Throwable t) {
21
        super(t);
22
    }
23
24
    /// Constructs a new UtilsException with the specified detail message and cause.
25
    ///
26
    /// @param message the detail message
27
    /// @param t the cause of the exception
28
    public UtilsException(String message, Throwable t) {
29
        super(message, t);
30
    }
31
32
    public static Supplier<? extends RuntimeException> supply(String message, Object... args) {
33 2 1. lambda$supply$0 : replaced return value with null for pro/verron/officestamper/utils/UtilsException::lambda$supply$0 → NO_COVERAGE
2. supply : replaced return value with null for pro/verron/officestamper/utils/UtilsException::supply → NO_COVERAGE
        return () -> new UtilsException(message.formatted(args));
34
    }
35
}

Mutations

33

1.1
Location : lambda$supply$0
Killed by : none
replaced return value with null for pro/verron/officestamper/utils/UtilsException::lambda$supply$0 → NO_COVERAGE

2.2
Location : supply
Killed by : none
replaced return value with null for pro/verron/officestamper/utils/UtilsException::supply → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.25.5 support