Skip to content

Package: InvalidChannelException

InvalidChannelException

nameinstructionbranchcomplexitylinemethod
InvalidChannelException(String)
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%
InvalidChannelException(String, Throwable)
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) 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.datastore.internal.mediator;
14:
15: /**
16: * Invalid channel exception.<br>
17: * This exception is raised if the channel doesn't match validations
18: *
19: * @since 1.0
20: */
21: public class InvalidChannelException extends DatastoreException {
22:
23: private static final long serialVersionUID = 5211237236391747299L;
24:
25: /**
26: * Construct the exception with the provided message
27: *
28: * @param message
29: */
30: public InvalidChannelException(String message) {
31: super(DatastoreErrorCodes.INVALID_CHANNEL, message);
32: }
33:
34: /**
35: * Construct the exception with the provided message and throwable
36: *
37: * @param message
38: * @param t
39: */
40: public InvalidChannelException(String message, Throwable t) {
41: super(DatastoreErrorCodes.INVALID_CHANNEL, t, message);
42: }
43:
44: }