1 | package fr.sii.ogham.sms.sender.impl.cloudhopper.exception; | |
2 | ||
3 | import static fr.sii.ogham.core.CoreConstants.SERIAL_VERSION_UID; | |
4 | ||
5 | import fr.sii.ogham.core.exception.MessagingException; | |
6 | import fr.sii.ogham.sms.encoder.Encoded; | |
7 | ||
8 | /** | |
9 | * Ogham tries to determine the value of the Data Coding Scheme according to the | |
10 | * message. | |
11 | * | |
12 | * This exception that is thrown when the Data Coding Scheme couldn't be | |
13 | * determined or is invalid or any other reason. This exception has subclasses | |
14 | * to indicate the detailed reason of the failure. | |
15 | * | |
16 | * @author Aurélien Baudet | |
17 | * | |
18 | */ | |
19 | public class DataCodingException extends MessagingException { | |
20 | private static final long serialVersionUID = SERIAL_VERSION_UID; | |
21 | ||
22 | private final transient Encoded encoded; | |
23 | ||
24 | public DataCodingException(String message, Throwable cause, Encoded encoded) { | |
25 | super(message, cause); | |
26 | this.encoded = encoded; | |
27 | } | |
28 | ||
29 | public DataCodingException(String message, Encoded encoded) { | |
30 | super(message); | |
31 | this.encoded = encoded; | |
32 | } | |
33 | ||
34 | public DataCodingException(Throwable cause, Encoded encoded) { | |
35 | super(cause); | |
36 | this.encoded = encoded; | |
37 | } | |
38 | ||
39 | public Encoded getEncoded() { | |
40 |
1
1. getEncoded : replaced return value with null for fr/sii/ogham/sms/sender/impl/cloudhopper/exception/DataCodingException::getEncoded → NO_COVERAGE |
return encoded; |
41 | } | |
42 | ||
43 | } | |
Mutations | ||
40 |
1.1 |