Skip to content

Package: InvalidBodyException

InvalidBodyException

nameinstructionbranchcomplexitylinemethod
InvalidBodyException(TranslatorErrorCodes)
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%
InvalidBodyException(TranslatorErrorCodes, 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%
InvalidBodyException(TranslatorErrorCodes, 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) 2021, 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.translator.exception;
14:
15: import org.eclipse.kapua.message.Payload;
16:
17: /**
18: * Base {@link TranslatorException} for all error occurring when translating {@link Payload}' body.
19: *
20: * @since 1.5.0
21: */
22: public abstract class InvalidBodyException extends TranslatorException {
23:
24: private static final long serialVersionUID = 2354951312528327605L;
25:
26: /**
27: * Constructor.
28: *
29: * @param code The {@link TranslatorErrorCodes}.
30: * @since 1.5.0
31: */
32: public InvalidBodyException(TranslatorErrorCodes code) {
33: super(code);
34: }
35:
36: /**
37: * Constructor.
38: *
39: * @param code The {@link TranslatorErrorCodes}.
40: * @param arguments Additional argument associated with the {@link InvalidBodyException}.
41: * @since 1.5.0
42: */
43: public InvalidBodyException(TranslatorErrorCodes code, Object... arguments) {
44: super(code, arguments);
45: }
46:
47: /**
48: * Constructor.
49: *
50: * @param code The {@link TranslatorErrorCodes}.
51: * @param cause The root {@link Throwable} of this {@link InvalidBodyException}.
52: * @param arguments Additional argument associated with the {@link InvalidBodyException}.
53: * @since 1.5.0
54: */
55: public InvalidBodyException(TranslatorErrorCodes code, Throwable cause, Object... arguments) {
56: super(code, cause, arguments);
57: }
58: }