Path: redb-route/redb.Route.As4/Exceptions/As4ProcessingException.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.As4/Exceptions/As4ProcessingException.cs ---- namespace redb.Route.As4; /// /// A received AS4 message cannot be processed for a reason ebMS names with a code. The receiver answers it with /// an eb:Error carrying and its fixed partner text; /// — the detail — is ours and goes to the log only (BR-4). /// public class As4ProcessingException : Exception { /// Creates the exception. /// The ebMS error code to answer with. /// What exactly was wrong, for our log; never sent to the partner. /// The underlying failure, if any. public As4ProcessingException(As4ErrorCode code, string detail, Exception? innerException = null) : base($"{code.Code} {code.ShortDescription}: {detail}", innerException) { Code = code ?? throw new ArgumentNullException(nameof(code)); Detail = detail; } /// The ebMS error code. public As4ErrorCode Code { get; } /// What exactly was wrong, for our log. public string Detail { get; } }