Class CdcMultipleTableHandlerException
Exception thrown when multiple implementations of IDataChangeHandler are found for a specified table.
public sealed class CdcMultipleTableHandlerException : ApiException, ISerializable
- Inheritance
-
CdcMultipleTableHandlerException
- Implements
- Inherited Members
Constructors
CdcMultipleTableHandlerException()
Initializes a new instance of the CdcMultipleTableHandlerException class with default values.
public CdcMultipleTableHandlerException()
CdcMultipleTableHandlerException(int, string?, Exception?)
Initializes a new instance of the CdcMultipleTableHandlerException class with a status code, message, and inner exception.
public CdcMultipleTableHandlerException(int statusCode, string? message, Exception? innerException)
Parameters
statusCodeintThe HTTP status code associated with the exception.
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe exception that is the cause of the current exception.
CdcMultipleTableHandlerException(string)
Initializes a new instance of the CdcMultipleTableHandlerException class with a specified error message.
public CdcMultipleTableHandlerException(string message)
Parameters
messagestringThe error message that explains the reason for the exception.
CdcMultipleTableHandlerException(string, Exception?)
Initializes a new instance of the CdcMultipleTableHandlerException class with a specified error message and inner exception.
public CdcMultipleTableHandlerException(string message, Exception? innerException)
Parameters
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe exception that is the cause of the current exception.
CdcMultipleTableHandlerException(string, int?, string?, Exception?)
Initializes a new instance of the CdcMultipleTableHandlerException class.
public CdcMultipleTableHandlerException(string tableName, int? statusCode = null, string? message = null, Exception? innerException = null)
Parameters
tableNamestringThe name of the table with multiple registered handlers.
statusCodeint?The HTTP status code associated with the exception. Defaults to 500 if not specified.
messagestringA custom error message. Defaults to a message indicating that multiple handlers were found for the specified table.
innerExceptionExceptionThe inner exception that caused the current exception, if applicable.
Exceptions
- ArgumentException
Thrown if
tableNameis null, empty, or consists only of whitespace.
Properties
TableName
Gets or sets the name of the table for which multiple handlers were found.
public string TableName { get; }
Property Value
- string
The name of the table for which multiple handlers were found.