Skip to content

Package: ViewProviderInitFailedReport

ViewProviderInitFailedReport

nameinstructionbranchcomplexitylinemethod
ViewProviderInitFailedReport(Throwable)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getMessage()
M: 11 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-2014 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: * Edgar Mueller - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.view.spi.provider.reporting;
15:
16: import java.text.MessageFormat;
17:
18: import org.eclipse.emfforms.spi.common.report.AbstractReport;
19:
20: /**
21: * Indicates that a ViewProvider could not be instantiated.
22: *
23: * @author emueller
24: * @since 1.5
25: *
26: */
27: public class ViewProviderInitFailedReport extends AbstractReport {
28:
29:         /**
30:          * Constructor.
31:          *
32:          * @param exception
33:          * an exception
34:          */
35:         public ViewProviderInitFailedReport(Throwable exception) {
36:                 super(exception);
37:         }
38:
39:         /**
40:          *
41:          * {@inheritDoc}
42:          *
43:          * @see org.eclipse.emfforms.spi.common.report.AbstractReport#getMessage()
44:          */
45:         @Override
46:         public String getMessage() {
47:                 return MessageFormat.format("ViewProvider could not be initialized due to {0}: ", //$NON-NLS-1$
48:                         getException().getMessage());
49:         }
50: }