Package: DatastoreException
DatastoreException
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DatastoreException(KapuaErrorCode) |
|
|
|
|
|
||||||||||||||||||||
DatastoreException(KapuaErrorCode, String) |
|
|
|
|
|
||||||||||||||||||||
DatastoreException(KapuaErrorCode, Throwable) |
|
|
|
|
|
||||||||||||||||||||
DatastoreException(KapuaErrorCode, Throwable, String) |
|
|
|
|
|
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: import org.eclipse.kapua.KapuaErrorCode;
16: import org.eclipse.kapua.KapuaException;
17:
18: /**
19: * Generic datastore exception
20: *
21: * @since 1.0
22: */
23: public class DatastoreException extends KapuaException {
24:
25: private static final long serialVersionUID = -2766345175377211253L;
26:
27: /**
28: * Construct the exception with the provided error code
29: *
30: * @param code
31: */
32: public DatastoreException(KapuaErrorCode code) {
33: super(code);
34: }
35:
36: /**
37: * Construct the exception with the provided error code and message
38: *
39: * @param code
40: * @param message
41: */
42: public DatastoreException(KapuaErrorCode code, String message) {
43: super(code, message);
44: }
45:
46: /**
47: * Construct the exception with the provided error code, throwable and message
48: *
49: * @param code
50: * @param t
51: */
52: public DatastoreException(KapuaErrorCode code, Throwable t) {
53: super(code, t);
54: }
55:
56: /**
57: * Construct the exception with the provided error code, throwable and message
58: *
59: * @param code
60: * @param t
61: * @param message
62: * message
63: */
64: public DatastoreException(KapuaErrorCode code, Throwable t, String message) {
65: super(code, t, message);
66: }
67:
68: }