Class CollectionInsertManyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.datastax.astra.client.exceptions.DataAPIException
com.datastax.astra.client.collections.exceptions.CollectionInsertManyException
- All Implemented Interfaces:
Serializable
- 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_PARTIAL_INSERTION, ERROR_CODE_RANDOM, ERROR_CODE_SERIALIZATION, ERROR_CODE_TIMEOUT -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CollectionInsertManyException(List<Object> insertedIds) Constructor with inserted IDs.CollectionInsertManyException(List<Object> insertedIds, String message) Constructor with inserted IDs and custom message. -
Method Summary
Modifier and TypeMethodDescriptionGet the list of successfully inserted document IDs.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CollectionInsertManyException
public CollectionInsertManyException()Default constructor. -
CollectionInsertManyException
Constructor with inserted IDs.- Parameters:
insertedIds- List of successfully inserted document IDs
-
CollectionInsertManyException
Constructor with inserted IDs and custom message.- Parameters:
insertedIds- List of successfully inserted document IDsmessage- Custom error message
-
-
Method Details
-
getInsertedIds
Get the list of successfully inserted document IDs.- Returns:
- Unmodifiable list of inserted IDs
-