Skip to content

Package: DeviceManagementException

DeviceManagementException

nameinstructionbranchcomplexitylinemethod
DeviceManagementException(DeviceManagementErrorCodes)
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%
DeviceManagementException(DeviceManagementErrorCodes, 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%
DeviceManagementException(DeviceManagementErrorCodes, 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) 2019, 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.service.device.management.exception;
14:
15: import org.eclipse.kapua.KapuaException;
16:
17: import javax.validation.constraints.NotNull;
18:
19: /**
20: * {@link DeviceManagementException} definition.
21: * <p>
22: * Base class for {@code kapua-device-call-api} {@link Exception}s.
23: *
24: * @since 1.1.0
25: */
26: public abstract class DeviceManagementException extends KapuaException {
27:
28: private static final String KAPUA_ERROR_MESSAGES = "device-management-error-messages";
29: private static final long serialVersionUID = 8255502521649641255L;
30:
31: /**
32: * @since 1.1.0
33: */
34: protected DeviceManagementException(@NotNull DeviceManagementErrorCodes code) {
35: super(code);
36: }
37:
38: /**
39: * @since 1.1.0
40: */
41: protected DeviceManagementException(@NotNull DeviceManagementErrorCodes code, Object... arguments) {
42: super(code, arguments);
43: }
44:
45: /*
46: * @since 1.1.0
47: */
48: protected DeviceManagementException(@NotNull DeviceManagementErrorCodes code, @NotNull Throwable cause, Object... arguments) {
49: super(code, cause, arguments);
50: }
51:
52: @Override
53: protected String getKapuaErrorMessagesBundle() {
54: return KAPUA_ERROR_MESSAGES;
55: }
56: }