Depend on different exception type

This commit is contained in:
Andrea Cavalli 2023-03-28 01:21:10 +02:00
parent dfa1fc3ecc
commit 09113207ed
3 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
package it.cavallium.dbengine.client;
public class SnapshotException extends RuntimeException {
public class SnapshotException extends IllegalStateException {
public SnapshotException(Throwable ex) {
super(ex);

View File

@ -1,6 +1,6 @@
package it.cavallium.dbengine.database.serialization;
public class SerializationException extends RuntimeException {
public class SerializationException extends IllegalStateException {
public SerializationException() {
super();

View File

@ -1,8 +1,9 @@
package it.cavallium.dbengine.utils;
import java.io.IOException;
import java.io.UncheckedIOException;
public class DBException extends RuntimeException {
public class DBException extends IllegalStateException {
public DBException(String message) {
super(message);