All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloud.prefab.client.exceptions.EnvironmentVariableMissingException Maven / Gradle / Ivy

Go to download

API Client for https://prefab.cloud: rate limits, feature flags and semaphores as a service

There is a newer version: 0.3.23
Show newest version
package cloud.prefab.client.exceptions;

public class EnvironmentVariableMissingException extends ConfigValueException {

  private final String configKey;
  private final String environmentVariableName;

  public EnvironmentVariableMissingException(
    String configKey,
    String environmentVariableName,
    Throwable cause
  ) {
    super(
      String.format(
        "config key `%s` provided by environment variable `%s` cannot be evaluated because the environment variable is missing",
        configKey,
        environmentVariableName
      ),
      cause
    );
    this.configKey = configKey;
    this.environmentVariableName = environmentVariableName;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy