Skip to content

Package: DmrToSegmentsMigrationException

DmrToSegmentsMigrationException

nameinstructionbranchcomplexitylinemethod
DmrToSegmentsMigrationException(String, Object[])
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
DmrToSegmentsMigrationException(Throwable, String, Object[])
M: 7 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2019 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Lucas Koehler - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.spi.ide.view.segments;
15:
16: import java.text.MessageFormat;
17:
18: /**
19: * Thrown when the migration of a resource from legacy to segment based dmrs fails.
20: *
21: * @author Lucas Koehler
22: * @since 1.22
23: */
24: public class DmrToSegmentsMigrationException extends Exception {
25:
26:         private static final long serialVersionUID = 6563601659356559914L;
27:
28:         /**
29:          * @param messageFormat describes the exception in {@link MessageFormat}
30:          * @param messageArgs Arguments for the message format.
31:          */
32:         public DmrToSegmentsMigrationException(String messageFormat, Object... messageArgs) {
33:                 super(MessageFormat.format(messageFormat, messageArgs));
34:         }
35:
36:         /**
37:          * @param cause the root cause for this exception
38:          * @param messageFormat describes the exception in {@link MessageFormat}
39:          * @param messageArgs Arguments for the message format.
40:          */
41:         public DmrToSegmentsMigrationException(Throwable cause, String messageFormat, Object... messageArgs) {
42:                 super(MessageFormat.format(messageFormat, messageArgs), cause);
43:         }
44: }