< Summary - AsyncResponse (Release / net8.0+net10.0 / unit+integration)

Information
Class: AsyncResponse.FlowStateTooLargeException
Assembly: AsyncResponse.Abstractions
File(s): /_/src/AsyncResponse.Abstractions/FlowStateTooLargeException.cs
Line coverage
100%
Covered lines: 10
Uncovered lines: 0
Coverable lines: 10
Total lines: 23
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_FlowId()100%11100%
get_SerializedSizeBytes()100%11100%
get_MaxStateBytes()100%11100%

File(s)

/_/src/AsyncResponse.Abstractions/FlowStateTooLargeException.cs

#LineLine coverage
 1namespace AsyncResponse;
 2
 3/// <summary>A deterministic rejection of a ledger exceeding its state store's size budget.</summary>
 4public sealed class FlowStateTooLargeException : InvalidOperationException
 5{
 6    /// <summary>Creates a size rejection with the measured size and provider budget.</summary>
 7    public FlowStateTooLargeException(string flowId, long serializedSizeBytes, long maxStateBytes, string providerName)
 548        : base($"Flow '{flowId}' state serialized to {serializedSizeBytes} bytes, exceeding the {providerName} MaxStateB
 549               "flow state exceeded the provider's size limit. Keep large payloads in your own storage and pass referenc
 5410               "see docs/durable-flows.md (ledger-size note).")
 11    {
 5412        FlowId = flowId;
 5413        SerializedSizeBytes = serializedSizeBytes;
 5414        MaxStateBytes = maxStateBytes;
 5415    }
 16
 17    /// <summary>The flow whose ledger was rejected.</summary>
 2018    public string FlowId { get; }
 19    /// <summary>The serialized size measured by the provider.</summary>
 2020    public long SerializedSizeBytes { get; }
 21    /// <summary>The configured size budget.</summary>
 1822    public long MaxStateBytes { get; }
 23}