Skip to content

Package: ProcessOnConnectException

ProcessOnConnectException

nameinstructionbranchcomplexitylinemethod
ProcessOnConnectException(KapuaId, KapuaId, 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%
ProcessOnConnectException(Throwable, KapuaId, KapuaId, Object[])
M: 25 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
getDeviceId()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getScopeId()
M: 3 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.job.scheduler.manager.exception;
14:
15: import org.eclipse.kapua.model.id.KapuaId;
16:
17: /**
18: * Exception when processing the event of the Device connecting.
19: *
20: * @since 1.1.0
21: */
22: public class ProcessOnConnectException extends JobDeviceManagementTriggerException {
23:
24: private final KapuaId scopeId;
25: private final KapuaId deviceId;
26:
27: public ProcessOnConnectException(KapuaId scopeId, KapuaId deviceId, Object... arguments) {
28: this(null, scopeId, deviceId, arguments);
29: }
30:
31: public ProcessOnConnectException(Throwable cause, KapuaId scopeId, KapuaId deviceId, Object... arguments) {
32: super(JobDeviceManagementTriggerErrorCodes.PROCESS_ON_CONNECT, cause, scopeId, deviceId, arguments);
33:
34: this.scopeId = scopeId;
35: this.deviceId = deviceId;
36: }
37:
38: /**
39: * Gets the scope {@link KapuaId}.
40: *
41: * @return The scope {@link KapuaId}.
42: * @since 1.1.0
43: */
44: public KapuaId getScopeId() {
45: return scopeId;
46: }
47:
48: /**
49: * Gets the device {@link KapuaId}.
50: *
51: * @return The device {@link KapuaId}.
52: * @since 1.1.0
53: */
54: public KapuaId getDeviceId() {
55: return deviceId;
56: }
57: }