restapi.models.schema.Schema.handle_error
- Schema.handle_error(error, data, *, many, **kwargs)[source]
Custom error handler function for the schema.
- Parameters:
error (
ValidationError) – The ValidationError raised during (de)serialization.data (
Any) – The original input data.many (
bool) – Value ofmanyon dump or load.partial – Value of
partialon load.
Added in version 2.0.0.
Changed in version 3.0.0rc9: Receives many and partial (on deserialization) as keyword arguments.