Skip to content

Commit b5c4fad

Browse files
committed
WS5-2
1 parent 51f7dc9 commit b5c4fad

File tree

4 files changed

+480
-186
lines changed

4 files changed

+480
-186
lines changed

codetracer-python-recorder/crates/recorder-errors/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ pub enum ErrorCode {
6161
Io,
6262
/// Invalid runtime policy configuration value.
6363
InvalidPolicyValue,
64+
/// Recorder was configured to require a trace but none was produced.
65+
TraceMissing,
66+
/// Recorder stopped early leaving partial trace artefacts behind.
67+
TraceIncomplete,
6468
}
6569

6670
impl ErrorCode {
@@ -79,6 +83,8 @@ impl ErrorCode {
7983
ErrorCode::TracerInstallConflict => "ERR_TRACER_INSTALL_CONFLICT",
8084
ErrorCode::Io => "ERR_IO",
8185
ErrorCode::InvalidPolicyValue => "ERR_INVALID_POLICY_VALUE",
86+
ErrorCode::TraceMissing => "ERR_TRACE_MISSING",
87+
ErrorCode::TraceIncomplete => "ERR_TRACE_INCOMPLETE",
8288
}
8389
}
8490
}

0 commit comments

Comments
 (0)