Table of Contents

Class BulkheadRejectedException

Namespace
LMKit.Agents.Resilience
Assembly
LM-Kit.NET.dll

Exception thrown when a bulkhead rejects an operation.

public sealed class BulkheadRejectedException : Exception, ISerializable
Inheritance
BulkheadRejectedException
Implements
Inherited Members

Examples

Catching bulkhead rejection to surface a friendly "system busy" message:

using LMKit.Agents.Resilience;

try { await bulkhead.ExecuteAsync(ct => agent.RunAsync(input, ct)); } catch (BulkheadRejectedException ex) { return $"System is at capacity, please retry: {ex.Message}"; }

Constructors

BulkheadRejectedException(string)

Initializes a new instance of the BulkheadRejectedException class.

Share