Skip to content

SemanticError

Source code in docs_src/capo_cloudextensions/types/semantic_error.py
class SemanticError(TypedDict, closed=True):
    problem: "str"
    """An uppercase code naming the problem, such as `UNKNOWN_CAPABILITY` or `REQUIRES_EXACTLY_ONE_MEMBER`."""
    item: NotRequired["str"]
    """The field or item the problem applies to, such as `approve` or `nextToken`."""
    value: NotRequired["str"]
    """The value that caused the problem, when there is one."""

item instance-attribute

item: NotRequired[str]

The field or item the problem applies to, such as approve or nextToken.

problem instance-attribute

problem: str

An uppercase code naming the problem, such as UNKNOWN_CAPABILITY or REQUIRES_EXACTLY_ONE_MEMBER.

value instance-attribute

value: NotRequired[str]

The value that caused the problem, when there is one.