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 severity | Retryable | Raised when… |
|---|---|---|---|---|
NULL_INPUT | 100 | error | × | A required entity, selection, or definition was Null. |
INVALID_DEFINITION | 101 | error | × | A value is not a usable Definition instance. |
VALIDATION_FAILED | 102 | error | × | Definition.validate() reported a problem. |
MODEL_UNAVAILABLE | 200 | fatal | ◯ | A critical API error made the model unusable for the rest of the run. |
MODEL_SKIPPED | 201 | error | ◯ | A definition was skipped because its model already failed critically. |
EMBED_FAILED | 202 | error | ◯ | A non-critical embedding call failed (single entity or chunk). |
VECTOR_COUNT_MISMATCH | 300 | error | × | The provider returned a different vector count than requested. |
SAVE_FAILED | 400 | error | ◯ | 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.
| 引数 | 型 | 説明 |
|---|---|---|
$code | Integer | One 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"}
参照
- ProcessError — carries a
.codefrom this list. - ProcessResult —
errorsByCode()filters errors by code.