Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
135 changes: 0 additions & 135 deletions docs/decisions/0001-pipelines-halt-on-error-by-default.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/decisions/INDEX.md

This file was deleted.

203 changes: 0 additions & 203 deletions docs/proposals/0001-halt-on-error.md

This file was deleted.

4 changes: 2 additions & 2 deletions src/Hyperbee.Pipeline.AspNetCore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Subclass `ResultMapper` to customize error handling, status codes, and success r
Override only the methods you need.

```csharp
public class BillingResultMapper : ResultMapper
public class ConflictResultMapper : ResultMapper
{
public override IResult? MapException( Exception exception ) => exception switch
{
Expand All @@ -62,7 +62,7 @@ public class BillingResultMapper : ResultMapper
Register with DI and inject into endpoints:

```csharp
services.AddSingleton<ResultMapper, BillingResultMapper>();
services.AddSingleton<ResultMapper, ConflictResultMapper>();

app.MapPost( "/items", async (
CreateItemRequest request,
Expand Down
2 changes: 1 addition & 1 deletion test/Hyperbee.Pipeline.Tests/HaltOnErrorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public async Task Composed_command_error_should_halt_outer_pipeline_by_default()
// Act
var result = await pipeline( context, "input" );

// Assert - the step after the composed command never ran (the Ringba fix)
// Assert - the step after the composed command never ran (halt-on-error)
Assert.IsFalse( followUpRan );
Assert.IsNull( result );
Assert.IsTrue( context.IsError );
Expand Down