メインコンテンツまでスキップ
バージョン: 次へ

ProcessErrorCode

A singleton exposing the stable, machine-readable error codes carried by ProcessError .code, plus a meta() lookup mapping each code to its default severity and retryable flag. Compare against these constants instead of parsing message strings.

Access the shared instance via .me:

var $codes:=cs.EmbeddingStudio.ProcessErrorCode.me
If ($error.code=$codes.SAVE_FAILED)
// …
End if

Codes​

定数値Default severityRetryableRaised when…
NULL_INPUT100error×A required entity, selection, or definition was Null.
INVALID_DEFINITION101error×A value is not a usable Definition instance.
VALIDATION_FAILED102error×Definition.validate() reported a problem.
MODEL_UNAVAILABLE200fatal◯A critical API error made the model unusable for the rest of the run.
MODEL_SKIPPED201error◯A definition was skipped because its model already failed critically.
EMBED_FAILED202error◯A non-critical embedding call failed (single entity or chunk).
VECTOR_COUNT_MISMATCH300error×The provider returned a different vector count than requested.
SAVE_FAILED400error◯entity.save() failed (validation, lock, …).

Codes are grouped by hundreds: 1xx input/configuration, 2xx model/API, 3xx data integrity, 4xx persistence. Unknown codes resolve to {severity: "error"; retryable: False; label: "UNKNOWN"}.

関数​

meta()​

meta( $code : Integer ) : Object

Returns the severity and retryable flag associated with a code — the same values carried by a ProcessError with that code.

引数型説明
$codeIntegerOne of the code constants above.
戻り値Object{severity : Text; retryable : Boolean; label : Text}.
var $m:=cs.EmbeddingStudio.ProcessErrorCode.me.meta(cs.EmbeddingStudio.ProcessErrorCode.me.MODEL_UNAVAILABLE)
// $m = {severity: "fatal"; retryable: True; label: "MODEL_UNAVAILABLE"}

参照​