Path: redb-route/redb.Route/Core/ExchangeTimedOutException.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route/Core/ExchangeTimedOutException.cs
----
namespace redb.Route.Core;
///
/// Thrown when exchange processing exceeds the configured timeout.
/// Can be caught in error handlers via OnException<ExchangeTimedOutException>().
///
public sealed class ExchangeTimedOutException : TimeoutException
{
/// The route where the timeout occurred.
public string RouteId { get; }
/// The configured timeout that was exceeded.
public TimeSpan Timeout { get; }
/// Actual elapsed time before cancellation.
public TimeSpan Elapsed { get; }
/// Creates a new instance.
public ExchangeTimedOutException(string routeId, TimeSpan timeout, TimeSpan elapsed)
: base($"Exchange processing timed out after {elapsed.TotalSeconds}s on route '{routeId}'.")
{
RouteId = routeId;
Timeout = timeout;
Elapsed = elapsed;
}
}