Class InvalidEnvironmentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.datastax.astra.client.exceptions.DataAPIException
com.datastax.astra.client.exceptions.DataAPIClientException
com.datastax.astra.client.exceptions.InvalidEnvironmentException
- All Implemented Interfaces:
Serializable
Exception thrown when the environment is invalid.
- See Also:
-
Field Summary
Fields inherited from class com.datastax.astra.client.exceptions.DataAPIException
DEFAULT_ERROR_CODE, DEFAULT_ERROR_MESSAGE, ERROR_CODE_HTTP, ERROR_CODE_INTERRUPTED, ERROR_CODE_RANDOM, ERROR_CODE_SERIALIZATION, ERROR_CODE_TIMEOUT -
Constructor Summary
ConstructorsConstructorDescriptionInvalidEnvironmentException(ErrorCodesClient code, String message) Constructor with code and message -
Method Summary
Modifier and TypeMethodDescriptionstatic voidthrowErrorRestrictedAstra(String operation, DataAPIDestination currentEnv) Format error message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidEnvironmentException
Constructor with code and message- Parameters:
code- error codemessage- error message
-
-
Method Details
-
throwErrorRestrictedAstra
Format error message.- Parameters:
operation- operation returning the errorcurrentEnv- current environment
-