pub enum ErrorCode {
Show 27 variants
Schema,
NumberTooLarge,
CountsMissing,
CountsInconsistent,
AttachmentRefUnknown,
AttachmentPathInvalid,
MetricIdInvalid,
TypeMismatch,
NotIndexed,
UnknownPath,
AttachmentMissing,
LabelInUse,
NamespaceInUse,
RegistryEntryExists,
RunsMoved,
RunStatusDetail,
RunIdInvalid,
RunIdMismatch,
RunResultValueOrLabel,
RunResultsEvalUnknown,
RunUnknown,
RunNotInUsedSet,
TooManyRunResults,
RunDeleted,
BatchDuplicateRunId,
BatchTooLarge,
BodyTooLarge,
}Expand description
The closed set of error codes.
Variants§
Schema
JSON Schema violation: unknown key, wrong type, missing required key.
NumberTooLarge
An integer outside ±2^53.
CountsMissing
results is non-empty but counts is absent.
CountsInconsistent
counts.attempted < completed + failed + skipped + errored.
AttachmentRefUnknown
A samples_ref, calls, artifacts[] or error.log entry names no attachments[].path.
AttachmentPathInvalid
An attachments[].path is duplicated, absolute, or contains ...
MetricIdInvalid
A results[].metric, a run_results[].metric or a key of a run’s
metrics is not of the form {ns}/{name}.
TypeMismatch
Query: operator applied to a path of another type.
NotIndexed
Query: operator needs an index the path does not have.
UnknownPath
Query: path not in the schema.
AttachmentMissing
An attachments[].sha256 has not been uploaded and confirmed.
LabelInUse
The requested @{label} already names another version.
NamespaceInUse
The requested organisation slug is already a user or an organisation.
RegistryEntryExists
A registry entry already exists at that address. Entries are immutable, so a correction is a new version.
RunsMoved
An evalhub.eval/2.0 Eval header carries runs. Runs are not part
of the header; they are written one by one or in a batch.
RunStatusDetail
A run’s status and its detail disagree: error must be present
exactly when status is error, skip_reason exactly when it is
skipped.
RunIdInvalid
A run_id is empty, contains /, or is longer than 200 bytes.
RunIdMismatch
The run_id in the body differs from the one in the request path.
RunResultValueOrLabel
A run_results[] element has neither value nor label.
RunResultsEvalUnknown
A run_results[].eval is not the record of any of the Card’s
core/uses_eval relations.
RunUnknown
A run_id in the Card’s used set has no row in that Eval (or the
Eval is one the writer may not see).
RunNotInUsedSet
A run_results[].run_id is outside the Card’s used set for its eval.
TooManyRunResults
A Card version carries more run_results[] than the hub’s configured limit.
RunDeleted
The run_id names a run that was deleted. A deleted run’s id is not
reused, because Cards that judged it would then point at different content.
BatchDuplicateRunId
The same run_id appears more than once in one batch.
BatchTooLarge
A batch carries more runs than the hub’s configured count.
BodyTooLarge
The request body is larger than the hub’s configured size in bytes.
Implementations§
Trait Implementations§
impl Copy for ErrorCode
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ErrorCode
Source§impl JsonSchema for ErrorCode
impl JsonSchema for ErrorCode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more