Table of Contents

Class GovernanceEmissionError

Namespace
AsiBackbone.Core.Emissions
Assembly
AsiBackbone.Core.dll

Represents provider-neutral error information for a governance emission attempt.

public sealed class GovernanceEmissionError
Inheritance
GovernanceEmissionError
Inherited Members

Properties

Code

Gets the provider-neutral error code.

public string Code { get; }

Property Value

string

IsRetryable

Gets a value indicating whether the error is expected to be retryable.

public bool IsRetryable { get; }

Property Value

bool

Message

Gets the provider-neutral diagnostic message.

public string Message { get; }

Property Value

string

ProviderErrorCode

Gets the provider-specific error code, when safe and available.

public string? ProviderErrorCode { get; }

Property Value

string

ProviderName

Gets the provider name associated with the error, when available.

public string? ProviderName { get; }

Property Value

string

Methods

Create(string, string, bool, string?, string?)

Creates provider-neutral error information for a governance emission attempt.

public static GovernanceEmissionError Create(string code, string message, bool isRetryable = false, string? providerName = null, string? providerErrorCode = null)

Parameters

code string

The provider-neutral error code.

message string

The provider-neutral diagnostic message.

isRetryable bool

A value indicating whether the error is expected to be retryable.

providerName string

Optional provider name.

providerErrorCode string

Optional provider-specific error code.

Returns

GovernanceEmissionError

The governance emission error.