Skip to content

Class peagen.errors.ProjectsPayloadValidationError

peagen.errors.ProjectsPayloadValidationError

ProjectsPayloadValidationError(errors, path=None)

Bases: ValueError

Raised when a projects_payload does not conform to the schema.

Source code in peagen/errors.py
184
185
186
187
188
def __init__(self, errors: list[str], path: str | None = None) -> None:
    self.errors = errors
    self.path = path
    label = f" at '{path}'" if path else ""
    super().__init__(f"Invalid projects_payload{label}")

errors instance-attribute

errors = errors

path instance-attribute

path = path