Table of Contents

Class ConditionalValue

Namespace
Cuemon
Assembly
Cuemon.Core.dll

Represents the base class to determine whether an operation was a success or not.

public abstract class ConditionalValue
Inheritance
ConditionalValue
Derived

Constructors

ConditionalValue(Boolean, Exception)

Initializes a new instance of the ConditionalValue class.

protected ConditionalValue(bool succeeded, Exception failure)

Parameters

succeeded Boolean

Indicates whether the operation was successful or not.

failure Exception

The Exception to associate with a faulted operation.

Properties

Failure

Gets the Exception that caused the faulted operation.

public Exception Failure { get; }

Property Value

Exception

The deeper cause of the faulted operation.

Succeeded

Gets a value indicating whether this ConditionalValue is succeeded.

public bool Succeeded { get; }

Property Value

Boolean

true if the operation succeeded; otherwise, false.