BeanException.java

1
package fr.sii.ogham.core.exception.util;
2
3
import static fr.sii.ogham.core.CoreConstants.SERIAL_VERSION_UID;
4
5
import fr.sii.ogham.core.util.BeanUtils;
6
7
/**
8
 * General exception that is thrown by {@link BeanUtils} while trying to
9
 * read/update a bean.
10
 * 
11
 * @author Aurélien Baudet
12
 *
13
 */
14
public class BeanException extends Exception {
15
	private static final long serialVersionUID = SERIAL_VERSION_UID;
16
17
	private final transient Object bean;
18
19
	public BeanException(String message, Object bean, Throwable cause) {
20
		super(message, cause);
21
		this.bean = bean;
22
	}
23
24
	public BeanException(String message, Object bean) {
25
		super(message);
26
		this.bean = bean;
27
	}
28
29
	public BeanException(Object bean, Throwable cause) {
30
		super(cause);
31
		this.bean = bean;
32
	}
33
34
	public Object getBean() {
35 1 1. getBean : replaced return value with null for fr/sii/ogham/core/exception/util/BeanException::getBean → NO_COVERAGE
		return bean;
36
	}
37
}

Mutations

35

1.1
Location : getBean
Killed by : none
replaced return value with null for fr/sii/ogham/core/exception/util/BeanException::getBean → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT OGHAM