| 1 | package fr.sii.ogham.core.exception.template; | |
| 2 | ||
| 3 | import static fr.sii.ogham.core.CoreConstants.SERIAL_VERSION_UID; | |
| 4 | ||
| 5 | /** | |
| 6 | * Specialized exception that indicates that the failure is due to an error | |
| 7 | * while trying to access a bean (or one of its properties). | |
| 8 | * | |
| 9 | * @author Aurélien Baudet | |
| 10 | * | |
| 11 | */ | |
| 12 | public class BeanContextException extends ContextException { | |
| 13 | private static final long serialVersionUID = SERIAL_VERSION_UID; | |
| 14 | ||
| 15 | private final transient Object bean; | |
| 16 | ||
| 17 | public BeanContextException(String message, Object bean, Throwable cause) { | |
| 18 | super(message, cause); | |
| 19 | this.bean = bean; | |
| 20 | } | |
| 21 | ||
| 22 | public BeanContextException(String message, Object bean) { | |
| 23 | super(message); | |
| 24 | this.bean = bean; | |
| 25 | } | |
| 26 | ||
| 27 | public BeanContextException(Object bean, Throwable cause) { | |
| 28 | super(cause); | |
| 29 | this.bean = bean; | |
| 30 | } | |
| 31 | ||
| 32 | public Object getBean() { | |
| 33 |
1
1. getBean : replaced return value with null for fr/sii/ogham/core/exception/template/BeanContextException::getBean → NO_COVERAGE |
return bean; |
| 34 | } | |
| 35 | } | |
Mutations | ||
| 33 |
1.1 |