Errors

Any errors raised by Cion

exception cion.exceptions.CionException[source]

Base class for all exceptions raised by Cion

exception cion.exceptions.ValidationError[source]

Error raised when validating data

__init__(errors: dict[str, list[str]], valid_data: dict[str, Any]) None[source]
Parameters:
  • errors (dict[str, list[str]])

  • valid_data (dict[str, Any])

Return type:

None

data: dict[str, Any] | None = None

Contains all of the validated data

errors: dict[str, list[str]]

A dictionary containing all of the errors

exception cion.exceptions.ValidatorError[source]

Exception raised by a validator

__init__(message: str) None[source]
Parameters:

message (str)

Return type:

None

message: str

The message that the validator raised