Method OnException<TException>()

Assembly: redb.Route.dll

Defines an exception handler for all routes of this builder (Apache Camel's RouteBuilder scope) — not for
the routes of another builder of the same context; for those, see . Between
this handler and a route's own the one whose exception type is nearest to the failure wins, the route's own
on a tie.

OnException<IOException>()
.MaximumRedeliveries(3)
.Handled()
.Log("IO error: ${exception.message}");

public OnExceptionDefinition OnException<TException>() where TException : Exception