/*
- * Copyright 2015-present Open Networking Foundation
+ * Copyright 2015-2021 Open Networking Foundation
+ * Copyright 2023 PANTHEON.tech, s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @author <a href="http://github.com/kuujo">Jordan Halterman</a>
*/
public class StorageException extends RuntimeException {
+ @java.io.Serial
+ private static final long serialVersionUID = 1L;
- public StorageException() {
- }
+ public StorageException() {
+ }
- public StorageException(String message) {
- super(message);
- }
+ public StorageException(final String message) {
+ super(message);
+ }
- public StorageException(String message, Throwable cause) {
- super(message, cause);
- }
+ public StorageException(final String message, final Throwable cause) {
+ super(message, cause);
+ }
- public StorageException(Throwable cause) {
- super(cause);
- }
+ public StorageException(final Throwable cause) {
+ super(cause);
+ }
- /**
- * Exception thrown when an entry being stored is too large.
- */
- public static class TooLarge extends StorageException {
- public TooLarge(String message) {
- super(message);
+ /**
+ * Exception thrown when an entry being stored is too large.
+ */
+ public static class TooLarge extends StorageException {
+ @java.io.Serial
+ private static final long serialVersionUID = 1L;
+
+ public TooLarge(final String message) {
+ super(message);
+ }
}
- }
-
- /**
- * Exception thrown when storage runs out of disk space.
- */
- public static class OutOfDiskSpace extends StorageException {
- public OutOfDiskSpace(String message) {
- super(message);
+
+ /**
+ * Exception thrown when storage runs out of disk space.
+ */
+ public static class OutOfDiskSpace extends StorageException {
+ @java.io.Serial
+ private static final long serialVersionUID = 1L;
+
+ public OutOfDiskSpace(final String message) {
+ super(message);
+ }
}
- }
}