Skip to content

Package: DeviceManagementErrorCodes

DeviceManagementErrorCodes

nameinstructionbranchcomplexitylinemethod
static {...}
M: 114 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 12 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2020, 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.KapuaErrorCode;
16:
17: public enum DeviceManagementErrorCodes implements KapuaErrorCode {
18:
19: //
20: // Request
21: //
22: /**
23: * See {@link DeviceManagementRequestBadMethodException}.
24: *
25: * @since 1.0.0
26: */
27: REQUEST_BAD_METHOD,
28:
29: /**
30: * See {@link DeviceManagementRequestContentException}.
31: *
32: * @since 1.5.0
33: */
34: REQUEST_CONTENT,
35:
36: //
37: // Response
38: //
39:
40: /**
41: * See {@link DeviceManagementResponseContentException}.
42: *
43: * @since 1.5.0
44: */
45: RESPONSE_CONTENT,
46:
47: /**
48: * See {@link DeviceManagementResponseBadRequestException}.
49: *
50: * @since 1.0.0
51: */
52: RESPONSE_BAD_REQUEST,
53:
54: /**
55: * See {@link DeviceManagementResponseNotFoundException}.
56: *
57: * @since 1.0.0
58: */
59: RESPONSE_NOT_FOUND,
60:
61: /**
62: * See {@link DeviceManagementResponseInternalErrorException}.
63: *
64: * @since 1.0.0
65: */
66: RESPONSE_INTERNAL_ERROR,
67:
68: /**
69: * See {@link DeviceManagementResponseUnknownCodeException}.
70: *
71: * @since 1.5.0
72: */
73: RESPONSE_UNKNOWN_CODE,
74:
75: //
76: // Misc
77: //
78:
79: /**
80: * See {@link DeviceManagementApplicationDisabledException}.
81: *
82: * @since 2.0.0
83: */
84: APPLICATION_DISABLED,
85:
86: /**
87: * See {@link DeviceNotConnectedException}.
88: *
89: * @since 1.0.0
90: */
91: DEVICE_NOT_CONNECTED,
92:
93: /**
94: * See {@link DeviceManagementSendException}.
95: *
96: * @since 1.1.0
97: */
98: SEND_ERROR,
99:
100: /**
101: * See {@link DeviceManagementTimeoutException}.
102: *
103: * @since 1.1.0
104: */
105: TIMEOUT
106:
107: }