MultiShardException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A MultiShardException represents an exception that occured when performing operations against a shard. It provides information about both the identity of the shard and the expection 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 expection, or lastly execute the query manually against the shard using a common tool such as SSMS.
public class MultiShardException : Exception
type MultiShardException = class
inherit Exception
Public Class MultiShardException
Inherits Exception
- Inheritance
-
System.ExceptionMultiShardException
- Derived
Constructors
MultiShardException() |
Initializes a new instance of the MultiShardException class. |
MultiShardException(SerializationInfo, StreamingContext) |
Initializes a new instance of the MultiShardException class with serialized data. |
MultiShardException(ShardLocation) |
Initializes a new instance of the MultiShardException class with the specified shard location. |
MultiShardException(ShardLocation, Exception) |
Initializes a new instance of the MultiShardException class with the specified shard location and exception. |
MultiShardException(ShardLocation, String) |
Initializes a new instance of the MultiShardException class with the specified shard location and error message. |
MultiShardException(ShardLocation, String, Exception) |
Initializes a new instance of the MultiShardException class with the specified shard location, error message and exception encountered. |
MultiShardException(String) |
Initializes a new instance of the MultiShardException class with the specified error message. |
MultiShardException(String, Exception) |
Initializes a new instance of the MultiShardException class with the specified error message and the reference to the inner exception that is the cause of this exception. |
Properties
ShardLocation |
The shard associated with this exception |
Methods
GetObjectData(SerializationInfo, StreamingContext) |
Populates the provided System.Runtime.Serialization.SerializationInfo parameter with the data needed to serialize the target object. |
ToString() |
Creates and returns a string representation of the current MultiShardException. |