io.camunda.zeebe.backup.gcs.GcsBackupStoreException Maven / Gradle / Ivy
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.1. You may not use this file
* except in compliance with the Zeebe Community License 1.1.
*/
package io.camunda.zeebe.backup.gcs;
import io.camunda.zeebe.backup.gcs.manifest.Manifest.StatusCode;
public abstract class GcsBackupStoreException extends RuntimeException {
public GcsBackupStoreException(final String message) {
super(message);
}
public GcsBackupStoreException(final String message, final Throwable cause) {
super(message, cause);
}
public static class InvalidPersistedManifestState extends GcsBackupStoreException {
public InvalidPersistedManifestState(final String errorMessage) {
super(errorMessage);
}
}
public static class UnexpectedManifestState extends GcsBackupStoreException {
public UnexpectedManifestState(final StatusCode expected, final StatusCode actual) {
super("Expected manifest in state '%s', but was in '%s'".formatted(expected, actual));
}
public UnexpectedManifestState(final String message) {
super(message);
}
}
public static class ConfigurationException extends GcsBackupStoreException {
public ConfigurationException(final String message) {
super(message);
}
public ConfigurationException(final String message, final Exception cause) {
super(message, cause);
}
public static final class CouldNotAccessBucketException extends ConfigurationException {
public CouldNotAccessBucketException(final String bucketName, final Exception cause) {
super("Bucket %s does not exist".formatted(bucketName), cause);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy