Class InvalidEnvironmentException

All Implemented Interfaces:
Serializable

public class InvalidEnvironmentException extends DataAPIClientException
Exception thrown when the environment is invalid.
See Also:
  • Constructor Details

    • InvalidEnvironmentException

      public InvalidEnvironmentException(ErrorCodesClient code, String message)
      Constructor with code and message
      Parameters:
      code - error code
      message - error message
  • Method Details

    • throwErrorRestrictedAstra

      public static void throwErrorRestrictedAstra(String operation, DataAPIDestination currentEnv)
      Format error message.
      Parameters:
      operation - operation returning the error
      currentEnv - current environment
    • throwErrorEnvironmentMismatch

      public static void throwErrorEnvironmentMismatch(com.dtsx.astra.sdk.utils.AstraEnvironment urlEnv, DataAPIDestination clientDestination)
      Throw when the database URL environment does not match the client's configured destination.
      Parameters:
      urlEnv - environment detected from the URL
      clientDestination - destination configured on the client