Ler em inglês

Partilhar via


com.microsoft.azure.elasticdb.query.exception

Classes

MultiShardAggregateException

Represents one or more Exception errors that occurred when executing a query across a shard set. The InnerExceptions field collects these exceptions and one can iterate through the InnerExceptions for further inspection or processing. Purpose: Public type that communicates errors that occurred across multiple shards

MultiShardException

DEVNOTE: Encapsulate SMM ShardLocation type for now since Shard isn't Serializable Support for serialization of ShardLocation is in the works. A MultiShardException represents an exception that occurred when performing operations against a shard. It provides information about both the identity of the shard and the exception that occurred. Depending on the nature of the exception, one can try re-running the multi-shard query, execute a separate query targeted directly at the shard(s) on that yielded the exception, or lastly execute the query manually against the shard using a common tool such as SSMS.

MultiShardPartialReadException

The MultiShardResultSet throws this exception when an exception has been hit reading data from one of the underlying shards. This indicates that not all rows have been successfully retrieved from the targeted shard(s). Users can then take the steps necessary to decide whether to re-run the query, or whether to continue working with the rows that have already been retrieved. This exception is only thrown with the partial results policy. Purpose: Custom exception to throw when the MultiShardResultSet hits an exception during a next() call to one of the underlying ResultSets. When that happens all we know is that we were not able to read all the results from that shard, so we need to notify the user somehow.

MultiShardResultSetClosedException

Custom exception to throw when the MultiShardResultSet is closed and the user attempts to perform an operation on the closed reader. Purpose: Custom exception to throw when the MultiShardResultSet is closed and the user attempts to perform some operation.

MultiShardResultSetInternalException

Custom exception that is thrown when the MultiShardResultSet is in an invalid state. If you experience this exception repeatedly, please contact Microsoft Customer Support. Purpose: Custom exception to throw when the MultiShardResultSet is in an invalid state. This error should not make it out to the user.

MultiShardSchemaMismatchException

Custom exception thrown when the schema on at least one of the shards participating in the overall query does not conform to the expected schema for the multi-shard query as a whole. Purpose: Custom exception to throw when the schema from a ResultSet from a given shard does not conform to the expected schema for the fanout query as a whole.