FractionFormatException.java

1
package com.github.dakusui.symfonion.exceptions;
2
3
import java.io.Serial;
4
5
import static java.lang.String.format;
6
7
public class FractionFormatException extends Exception {
8
9
	/**
10
	 * A serial version UID string.
11
	 */
12
	@Serial
13
	private static final long serialVersionUID = -8791776177337740280L;
14
	private final String fraction;
15
	
16
	
17
	public FractionFormatException(String fraction) {
18
		super(format("'%s' is an invalid fraction", fraction));
19
		this.fraction = fraction;
20
	}
21
	
22
	public String getFractionString() {
23 1 1. getFractionString : replaced return value with "" for com/github/dakusui/symfonion/exceptions/FractionFormatException::getFractionString → NO_COVERAGE
		return this.fraction;
24
	}
25
26
}

Mutations

23

1.1
Location : getFractionString
Killed by : none
replaced return value with "" for com/github/dakusui/symfonion/exceptions/FractionFormatException::getFractionString → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.15.3