# `AshWorkflow.Errors.NoMatchingRoute`
[🔗](https://github.com/team-alembic/ash_workflow/blob/v0.12.0/lib/ash_workflow/errors/no_matching_route.ex#L1)

Returned (or raised) when an automatic step's action succeeds but none of
its `on_success` routes match the resulting record.

`AshWorkflow.Verifiers.ValidateWorkflow` rejects a step whose `on_success`
is not statically exhaustive — no trailing unconditional entry — and which
also declares no `on_error`, so this error is only ever returned to a
caller when `on_error` is declared, added to the changeset so the step's
standard error path handles it. It is raised directly on a step that
somehow reaches this with no `on_error`, since there is then nowhere for
the record to go.

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %AshWorkflow.Errors.NoMatchingRoute{
  __exception__: true,
  action: term(),
  bread_crumbs: term(),
  class: term(),
  path: term(),
  resource: term(),
  splode: term(),
  stacktrace: term(),
  step: term(),
  vars: term()
}
```

Create an `Elixir.AshWorkflow.Errors.NoMatchingRoute` without raising it.

## Keys

- :resource
- :step
- :action

---

*Consult [api-reference.md](api-reference.md) for complete listing*
