1 | package fr.sii.ogham.core.exception; | |
2 | ||
3 | import static fr.sii.ogham.core.CoreConstants.SERIAL_VERSION_UID; | |
4 | ||
5 | import fr.sii.ogham.core.message.Message; | |
6 | ||
7 | /** | |
8 | * Base exception related to a message that is about to be sent. | |
9 | * It provides the message that couldn't be sent for any reason. | |
10 | * | |
11 | * This exception has subclasses that indicate the reason of the failure. | |
12 | * | |
13 | * @author Aurélien Baudet | |
14 | * | |
15 | */ | |
16 | public class MessageException extends MessagingException { | |
17 | private static final long serialVersionUID = SERIAL_VERSION_UID; | |
18 | ||
19 | private final transient Message message; | |
20 | ||
21 | public MessageException(String message, Message msg, Throwable cause) { | |
22 | super(message, cause); | |
23 | this.message = msg; | |
24 | } | |
25 | ||
26 | public MessageException(String message, Message msg) { | |
27 | super(message); | |
28 | this.message = msg; | |
29 | } | |
30 | ||
31 | public MessageException(Throwable cause, Message msg) { | |
32 | super(cause); | |
33 | this.message = msg; | |
34 | } | |
35 | ||
36 | public Message getOghamMessage() { | |
37 |
2
1. getOghamMessage : replaced return value with null for fr/sii/ogham/core/exception/MessageException::getOghamMessage → NO_COVERAGE 2. getOghamMessage : replaced return value with null for fr/sii/ogham/core/exception/MessageException::getOghamMessage → KILLED |
return message; |
38 | } | |
39 | } | |
Mutations | ||
37 |
1.1 2.2 |