Skip to content

Package: RestApiRuntimeException

RestApiRuntimeException

nameinstructionbranchcomplexitylinemethod
RestApiRuntimeException(RestApiErrorCodes)
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%
RestApiRuntimeException(RestApiErrorCodes, 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%
RestApiRuntimeException(RestApiErrorCodes, 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%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2018, 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.app.api.core.exception;
14:
15: import org.eclipse.kapua.KapuaRuntimeException;
16:
17: public class RestApiRuntimeException extends KapuaRuntimeException {
18:
19: /**
20: * Builds a new {@link RestApiRuntimeException} instance based on the supplied {@link RestApiErrorCodes}.
21: *
22: * @param code
23: */
24: public RestApiRuntimeException(RestApiErrorCodes code) {
25: this(code, (Object[]) null);
26: }
27:
28: /**
29: * Builds a new {@link RestApiRuntimeException} instance based on the supplied {@link RestApiErrorCodes}
30: * and optional arguments for the associated exception message.
31: *
32: * @param code
33: * @param arguments
34: */
35: public RestApiRuntimeException(RestApiErrorCodes code, Object... arguments) {
36: this(code, null, arguments);
37: }
38:
39: /**
40: * Builds a new {@link KapuaRuntimeException} instance based on the supplied {@link RestApiErrorCodes},
41: * an Throwable cause, and optional arguments for the associated exception message.
42: *
43: * @param code
44: * @param cause
45: * @param arguments
46: */
47: public RestApiRuntimeException(RestApiErrorCodes code, Throwable cause, Object... arguments) {
48: super(code, cause, arguments);
49: }
50: }