TemplateResolutionException.java

1
package fr.sii.ogham.template.thymeleaf.common.exception;
2
3
import static fr.sii.ogham.core.CoreConstants.SERIAL_VERSION_UID;
4
5
import fr.sii.ogham.core.resource.path.ResourcePath;
6
import fr.sii.ogham.template.exception.TemplateRuntimeException;
7
8
/**
9
 * Specialized exception that is thrown by template engine integrations to
10
 * indicate that a template couldn't be resolved.
11
 * 
12
 * @author Aurélien Baudet
13
 *
14
 */
15
@SuppressWarnings({ "squid:MaximumInheritanceDepth" }) // Object, Throwable,
16
														// Exception and
17
														// RuntimeException are
18
														// counted but this is
19
														// stupid
20
public class TemplateResolutionException extends TemplateRuntimeException {
21
	private static final long serialVersionUID = SERIAL_VERSION_UID;
22
23
	private final String templateName;
24
	private final transient ResourcePath templatePath;
25
26
	public TemplateResolutionException(String message, String templateName, ResourcePath templatePath, Throwable cause) {
27
		super(message, cause);
28
		this.templateName = templateName;
29
		this.templatePath = templatePath;
30
	}
31
32
	public TemplateResolutionException(String message, String templateName, ResourcePath templatePath) {
33
		super(message);
34
		this.templateName = templateName;
35
		this.templatePath = templatePath;
36
	}
37
38
	public ResourcePath getTemplatePath() {
39 1 1. getTemplatePath : replaced return value with null for fr/sii/ogham/template/thymeleaf/common/exception/TemplateResolutionException::getTemplatePath → NO_COVERAGE
		return templatePath;
40
	}
41
42
	public String getTemplateName() {
43 1 1. getTemplateName : replaced return value with "" for fr/sii/ogham/template/thymeleaf/common/exception/TemplateResolutionException::getTemplateName → NO_COVERAGE
		return templateName;
44
	}
45
46
}

Mutations

39

1.1
Location : getTemplatePath
Killed by : none
replaced return value with null for fr/sii/ogham/template/thymeleaf/common/exception/TemplateResolutionException::getTemplatePath → NO_COVERAGE

43

1.1
Location : getTemplateName
Killed by : none
replaced return value with "" for fr/sii/ogham/template/thymeleaf/common/exception/TemplateResolutionException::getTemplateName → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT OGHAM