Type Definition flex_error::DefaultTracer[][src]

type DefaultTracer = EyreTracer;
Expand description

The DefaultTracer type alias is used when defining error types using define_error!. With the default Cargo features, or when the eyre_tracer feature is set, this is configured to use the EyreTracer. Otherwise, it will be set to AnyhowTracer if the anyhow_tracer feature is set. If neither eyre_tracer nor anyhow_tracer is set, then DefaultTracer is set to StringTracer.

We hard code globally the default error tracer to be used in define_error!, to avoid making the error types overly generic.