credmark.cmf.types.series.BlockSeriesErrorRow
- DTO class BlockSeriesErrorRow(*, blockNumber, blockTimestamp, sampleTimestamp, error)[source]
Bases:
BaseModel
An error row in a block series.
Show JSON schema
{ "title": "BlockSeriesErrorRow", "description": "An error row in a block series.", "type": "object", "properties": { "blockNumber": { "title": "Blocknumber", "description": "Block number in the series", "type": "integer" }, "blockTimestamp": { "title": "Blocktimestamp", "description": "The Timestamp of the Block", "type": "integer" }, "sampleTimestamp": { "title": "Sampletimestamp", "description": "The Sample Block time", "type": "integer" }, "error": { "title": "Error", "description": "Error DTO of the model run for this block", "allOf": [ { "$ref": "#/definitions/ModelErrorDTO" } ] } }, "required": [ "blockNumber", "blockTimestamp", "sampleTimestamp", "error" ], "definitions": { "ModelCallStackEntry": { "title": "ModelCallStackEntry", "description": "An item in an error's call stack.", "type": "object", "properties": { "slug": { "title": "Slug", "description": "Model slug", "type": "string" }, "version": { "title": "Version", "description": "Model version", "type": "string" }, "chainId": { "title": "Chainid", "description": "Context chain id", "type": "integer" }, "blockNumber": { "title": "Blocknumber", "description": "Context block number", "type": "integer" }, "input": { "title": "Input", "description": "Context input" }, "trace": { "title": "Trace", "description": "Trace of code that generated the error", "type": "string" } }, "required": [ "slug", "version" ] }, "ModelErrorDTO": { "title": "ModelErrorDTO", "description": "Data fields common to all error types:\nModelDataError, ModelRunError, ModelInputError etc.", "type": "object", "properties": { "type": { "title": "Type", "description": "Error type", "type": "string" }, "message": { "title": "Message", "description": "Error message", "type": "string" }, "stack": { "title": "Stack", "description": "Model call stack. Last element is the model that raised the error.", "default": [], "type": "array", "items": { "$ref": "#/definitions/ModelCallStackEntry" } }, "code": { "title": "Code", "description": "Short identifier for the type of error", "default": "generic", "type": "string" }, "detail": { "title": "Detail", "description": "Arbitrary data object related to the error." }, "permanent": { "title": "Permanent", "description": "If true, the error will always give the same result for the same context.", "default": false, "type": "boolean" } }, "required": [ "type", "message" ] } } }
- Fields
- Parameters
blockNumber (int) –
blockTimestamp (int) –
sampleTimestamp (int) –
error (ModelErrorDTO) –
- Return type
None
- field error: ModelErrorDTO [Required]
Error DTO of the model run for this block