Skip to content

Package: KapuaLocatorException

KapuaLocatorException

nameinstructionbranchcomplexitylinemethod
KapuaLocatorException(KapuaLocatorErrorCodes)
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%
KapuaLocatorException(KapuaLocatorErrorCodes, Object[])
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
KapuaLocatorException(KapuaLocatorErrorCodes, Throwable, 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%
getKapuaErrorMessagesBundle()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.locator;
14:
15: import org.eclipse.kapua.KapuaException;
16:
17: /**
18: * Kapua locator exception.<br>
19: * The exception is thrown if something wrong happens during service initialization operation done by the locator.
20: *
21: * @since 1.0
22: *
23: */
24: public class KapuaLocatorException extends KapuaException {
25:
26: private static final long serialVersionUID = -6207605695086240243L;
27:
28: private static final String KAPUA_ERROR_MESSAGES = "kapua-locator-service-error-messages";
29:
30: /**
31: * Constructor
32: *
33: * @param code
34: */
35: public KapuaLocatorException(KapuaLocatorErrorCodes code) {
36: super(code);
37: }
38:
39: /**
40: * Constructor
41: *
42: * @param code
43: * @param arguments
44: */
45: public KapuaLocatorException(KapuaLocatorErrorCodes code, Object... arguments) {
46: super(code, arguments);
47: }
48:
49: /**
50: * Constructor
51: *
52: * @param code
53: * @param cause
54: * @param arguments
55: */
56: public KapuaLocatorException(KapuaLocatorErrorCodes code, Throwable cause, Object... arguments) {
57: super(code, cause, arguments);
58: }
59:
60: protected String getKapuaErrorMessagesBundle() {
61: return KAPUA_ERROR_MESSAGES;
62: }
63: }