Trading_engine.DiagnosticStable structured errors for process and file boundaries.
type code = | Cli_invalid_arguments| Input_io| Scenario_invalid_json| Scenario_invalid| Scenario_unsupported_contract| Scenario_stream_invalid| Scenario_stream_changed| Resource_limit| Replay_failed| Reducer_failed| Strategy_invalid_configuration| Strategy_protocol| Strategy_timeout| Strategy_process| Strategy_exit| Artifact_exists| Artifact_io| Artifact_stateval cause_of_exception : exn -> causecombine primary secondary preserves the primary identity and context while adding the secondary message and an underlying cause when needed.
val code_to_string : code -> stringval phase_to_string : phase -> stringval to_yojson : t -> Yojson.Safe.tval to_json : t -> stringval to_human : t -> stringval pp : t Fmt.t