The Error class is a metadata with no behavior. It's used to describe an error that happened during Framework work or during the validation.
To create a custom error you basically just need to fill the required class fields:
from frictionless import errors
class DuplicateRowError(errors.RowError):
code = "duplicate-row"
name = "Duplicate Row"
tags = ["#table", "#row", "#duplicate"]
template = "Row at position {rowPosition} is duplicated: {note}"
description = "The row is duplicated."
Error representation. It is a baseclass from which other subclasses of errors are inherited or derived from.
(*, note: str) -> None
A human readable informative comprehensive description of the error. It can be set to any custom text. If not set, default description is more comprehensive with error type, message and reasons included.
ClassVar[str]
A human readable informative comprehensive description of the error. It can be set to any custom text. If not set, default description is more comprehensive with error type, message and reasons included.
ClassVar[str]
A human readable informative comprehensive description of the error. It can be set to any custom text. If not set, default description is more comprehensive with error type, message and reasons included.
ClassVar[str]
A human readable informative comprehensive description of the error. It can be set to any custom text. If not set, default description is more comprehensive with error type, message and reasons included.
ClassVar[str]
A human readable informative comprehensive description of the error. It can be set to any custom text. If not set, default description is more comprehensive with error type, message and reasons included.
ClassVar[List[str]]
A human readable informative comprehensive description of the error. It can be set to any custom text. If not set, default description is more comprehensive with error type, message and reasons included.
str
A short human readable description of the error. It can be set to any custom text.
str