Debian Codegraph @

src/main/org/h2/mvstore/MVStoreException.java

raw
1 /*
2 * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0,
3 * and the EPL 1.0 (https://h2database.com/html/license.html).
4 * Initial Developer: H2 Group
5 */
6 package org.h2.mvstore;
7
8 /**
9 * Various kinds of MVStore problems, along with associated error code.
10 */
11 public class MVStoreException extends RuntimeException {
12
13 private static final long serialVersionUID = 2847042930249663807L;
14
15 private final int errorCode;
16
17 public MVStoreException(int errorCode, String message) {
18 super(message);
19 this.errorCode = errorCode;
20 }
21
22 public int getErrorCode() {
23 return errorCode;
24 }
25 }