SplitMessageException.java

1
package fr.sii.ogham.sms.exception.message;
2
3
import static fr.sii.ogham.core.CoreConstants.SERIAL_VERSION_UID;
4
5
import fr.sii.ogham.core.exception.MessagingException;
6
7
/**
8
 * The original message may be too long to fit in a single SMS. Therefore, the
9
 * SMS has to be split into several segments.
10
 * 
11
 * This exception is thrown when the split has failed or message couldn't be
12
 * split.
13
 * 
14
 * @author Aurélien Baudet
15
 * 
16
 * @see NoSplitterAbleToSplitMessageException
17
 */
18
public class SplitMessageException extends MessagingException {
19
	private static final long serialVersionUID = SERIAL_VERSION_UID;
20
21
	private final String messageToSplit;
22
23
	public SplitMessageException(String message, String messageToSplit, Throwable cause) {
24
		super(message, cause);
25
		this.messageToSplit = messageToSplit;
26
	}
27
28
	public SplitMessageException(String message, String messageToSplit) {
29
		super(message);
30
		this.messageToSplit = messageToSplit;
31
	}
32
33
	public SplitMessageException(Throwable cause, String messageToSplit) {
34
		super(cause);
35
		this.messageToSplit = messageToSplit;
36
	}
37
38
	public String getMessageToSplit() {
39 1 1. getMessageToSplit : replaced return value with "" for fr/sii/ogham/sms/exception/message/SplitMessageException::getMessageToSplit → NO_COVERAGE
		return messageToSplit;
40
	}
41
}

Mutations

39

1.1
Location : getMessageToSplit
Killed by : none
replaced return value with "" for fr/sii/ogham/sms/exception/message/SplitMessageException::getMessageToSplit → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT OGHAM