Table of Contents

Class UninitializedDataException

Namespace
SignalSharp.Common.Exceptions
Assembly
SignalSharp.dll

Exception thrown when an operation is attempted on data that has not been initialized (for example, calling a calculation before Fit).

public class UninitializedDataException : InvalidOperationException, ISerializable
Inheritance
UninitializedDataException
Implements
Inherited Members

Remarks

Derives from InvalidOperationException because it signals an operation-ordering violation.

Constructors

UninitializedDataException()

Initializes a new instance of the UninitializedDataException class.

public UninitializedDataException()

UninitializedDataException(string?)

Initializes a new instance of the UninitializedDataException class with a specified error message.

public UninitializedDataException(string? message)

Parameters

message string

The message that describes the error.

UninitializedDataException(string?, Exception?)

Initializes a new instance of the UninitializedDataException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public UninitializedDataException(string? message, Exception? innerException)

Parameters

message string

The message that describes the error.

innerException Exception

The exception that is the cause of the current exception.

Methods

ThrowIfFalse(bool, string)

Throws an exception if the condition is false.

public static void ThrowIfFalse(bool condition, string message)

Parameters

condition bool

The condition to validate.

message string

The exception message.

Exceptions

UninitializedDataException

Thrown when the condition is false.

ThrowIfUninitialized(object, string)

Throws an exception if the data is not initialized.

public static void ThrowIfUninitialized(object data, string message)

Parameters

data object

The data to validate.

message string

The exception message.

Exceptions

UninitializedDataException

Thrown when data is not initialized.