SymfonionException.java

1
package com.github.dakusui.symfonion.exceptions;
2
3
import java.io.File;
4
import java.io.Serial;
5
6
public class SymfonionException extends RuntimeException {
7
  private final File sourceFile;
8
9
  /**
10
   * A serial version uid.
11
   */
12
  @Serial
13
  private static final long serialVersionUID = -1999577216046615241L;
14
15
  public SymfonionException(String message, Throwable cause, File sourceFile) {
16
    super(message, cause);
17
    this.sourceFile = sourceFile;
18
  }
19
20
  public SymfonionException(String message, File sourceFile) {
21
    super(message);
22
    this.sourceFile = sourceFile;
23
  }
24
25
  public SymfonionException(Throwable cause, File sourceFile) {
26
    super(cause);
27
    this.sourceFile = sourceFile;
28
  }
29
30
31
  public File getSourceFile() {
32 1 1. getSourceFile : replaced return value with null for com/github/dakusui/symfonion/exceptions/SymfonionException::getSourceFile → KILLED
    return sourceFile;
33
  }
34
}

Mutations

32

1.1
Location : getSourceFile
Killed by : com.github.dakusui.symfonion.tests.InvalidJsonErrorTest.invalid_01(com.github.dakusui.symfonion.tests.InvalidJsonErrorTest)
replaced return value with null for com/github/dakusui/symfonion/exceptions/SymfonionException::getSourceFile → KILLED

Active mutators

Tests examined


Report generated by PIT 1.15.3