SchemaError class

class onctuous.errors.SchemaError

An error was encountered in the schema.

Invalid class

class onctuous.errors.Invalid(message, path=None)

The data was invalid.

Attr msg:The error message.
Attr path:The path to the error, as a list of keys in the source data.

InvalidList class

Class definition

class onctuous.errors.InvalidList(errors)

List of captures errors for reporting to the end user.

Attr errors:Array of errors
Attr msg:Message associated with the first reported error
Attr path:Path associated with the first reported error

Public API


Create a new list of errors.

Parameters:errors – list of errors to add initially

Push an error to the internal list

Project Versions

Table Of Contents

Previous topic

Change log - Migration guide.

Next topic

Schema class

This Page