Table of Contents

Class SzException

Namespace
Senzing.Sdk
Assembly
Senzing.Sdk.dll

Defines the base exception for Senzing errors. This adds a property for the numeric Senzing error code which can optionally be set.

public class SzException : Exception, ISerializable
Inheritance
SzException
Implements
Derived
Inherited Members

Constructors

SzException()

Default constructor.

public SzException()

SzException(Exception)

Constructs with the Exception that is the underlying cause for the exception.

public SzException(Exception cause)

Parameters

cause Exception

The underlying cause for the exception.

SzException(long?, string)

Constructs with a message explaing the reason for the exception.

public SzException(long? errorCode, string message)

Parameters

errorCode long?

The underlying Senzing error code.

message string

The message explaining the reason for the exception.

SzException(long?, string, Exception)

Constructs with the Senzing error code, the message explaing the reason for the exception and the Exception that is the underlying cause for the exception.

public SzException(long? errorCode, string message, Exception cause)

Parameters

errorCode long?

The underlying Senzing error code.

message string

The message explaining the reason for the exception.

cause Exception

The underlying cause for the exception.

SzException(string)

Constructs with a message explaing the reason for the exception.

public SzException(string message)

Parameters

message string

The message explaining the reason for the exception.

SzException(string, Exception)

Constructs with a message explaing the reason for the exception and the Exception that is the underlying cause for the exception.

public SzException(string message, Exception cause)

Parameters

message string

The message explaining the reason for the exception.

cause Exception

The underlying cause for the exception.

Properties

ErrorCode

Gets the underlying Senzing error code associated with the exception or null if no error code was associated with the exception.

public long? ErrorCode { get; }

Property Value

long?