Skip to content

Package: KuraDeviceCallException

KuraDeviceCallException

nameinstructionbranchcomplexitylinemethod
KuraDeviceCallException(KuraDeviceCallErrorCodes)
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%
KuraDeviceCallException(KuraDeviceCallErrorCodes, 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%
KuraDeviceCallException(KuraDeviceCallErrorCodes, 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.service.device.call.kura.exception;
14:
15: import org.eclipse.kapua.KapuaException;
16:
17: /**
18: * {@link KuraDeviceCallException} base class.
19: *
20: * @since 1.0.0
21: */
22: public class KuraDeviceCallException extends KapuaException {
23:
24: private static final long serialVersionUID = -6207605695086240243L;
25:
26: private static final String KAPUA_ERROR_MESSAGES = "device-call-service-error-messages";
27:
28: /**
29: * Constructor.
30: *
31: * @param code The {@link KuraDeviceCallErrorCodes} associated with the {@link KuraDeviceCallException}
32: */
33: public KuraDeviceCallException(KuraDeviceCallErrorCodes code) {
34: super(code);
35: }
36:
37: /**
38: * Constructor.
39: *
40: * @param code The {@link KuraDeviceCallErrorCodes} associated with the {@link KuraDeviceCallException}.
41: * @param arguments The arguments associated with the {@link KuraDeviceCallException}.
42: */
43: public KuraDeviceCallException(KuraDeviceCallErrorCodes code, Object... arguments) {
44: super(code, arguments);
45: }
46:
47: /**
48: * Constructor.
49: *
50: * @param code The {@link KuraDeviceCallErrorCodes} associated with the {@link KuraDeviceCallException}.
51: * @param cause The original {@link Throwable}.
52: * @param arguments The arguments associated with the {@link KuraDeviceCallException}.
53: * @since 1.0.0
54: */
55: public KuraDeviceCallException(KuraDeviceCallErrorCodes code, Throwable cause, Object... arguments) {
56: super(code, cause, arguments);
57: }
58:
59: @Override
60: protected String getKapuaErrorMessagesBundle() {
61: return KAPUA_ERROR_MESSAGES;
62: }
63: }