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
IsRetryable
Gets a value indicating whether the error is expected to be retryable.
public bool IsRetryable { get; }
Property Value
Message
Gets the provider-neutral diagnostic message.
public string Message { get; }
Property Value
ProviderErrorCode
Gets the provider-specific error code, when safe and available.
public string? ProviderErrorCode { get; }
Property Value
ProviderName
Gets the provider name associated with the error, when available.
public string? ProviderName { get; }
Property Value
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
codestringThe provider-neutral error code.
messagestringThe provider-neutral diagnostic message.
isRetryableboolA value indicating whether the error is expected to be retryable.
providerNamestringOptional provider name.
providerErrorCodestringOptional provider-specific error code.
Returns
- GovernanceEmissionError
The governance emission error.