pydent.marshaller.exceptions

Marshalling exceptions.

Exceptions

AllowNoneFieldValidationError

A field validation error for getting or setting None values.

CallbackValidationError

A generic callback validation error.

ExceptionCollection(*args[, header])

Context dependent exception for capturing multiple exceptions.

FieldValidationError

A generic field validation error.

ModelRegistryError

Model not found in registry exception.

ModelValidationError

A model validation error.

MultipleValidationError(*args[, header])

Model validation exception.

RunTimeCallbackAttributeError

Error that occurs during executing a field callback.

SchemaException

A generic schema exception.

SchemaModelException

A generic model exception.

SchemaRegistryError

Generic schema registry exception.

exception pydent.marshaller.exceptions.AllowNoneFieldValidationError[source]

Bases: pydent.marshaller.exceptions.FieldValidationError

A field validation error for getting or setting None values.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception pydent.marshaller.exceptions.CallbackValidationError[source]

Bases: pydent.marshaller.exceptions.MarshallerBaseException

A generic callback validation error.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception pydent.marshaller.exceptions.ExceptionCollection(*args, header='')[source]

Bases: pydent.marshaller.exceptions.MarshallerBaseException

Context dependent exception for capturing multiple exceptions.

Call r to gather exceptions, upon exiting, a single ExceptionCollection will be raised with a summary of all the internal exceptions.

raise_exception_class(exception_class)[source]

Raise an exception class, if it was collected.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception pydent.marshaller.exceptions.FieldValidationError[source]

Bases: pydent.marshaller.exceptions.MarshallerBaseException

A generic field validation error.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception pydent.marshaller.exceptions.MarshallerBaseException[source]

Bases: Exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception pydent.marshaller.exceptions.ModelRegistryError[source]

Bases: pydent.marshaller.exceptions.MarshallerBaseException

Model not found in registry exception.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception pydent.marshaller.exceptions.ModelValidationError[source]

Bases: pydent.marshaller.exceptions.MarshallerBaseException

A model validation error.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception pydent.marshaller.exceptions.MultipleValidationError(*args, header='')[source]

Bases: pydent.marshaller.exceptions.ModelValidationError, pydent.marshaller.exceptions.ExceptionCollection

Model validation exception.

raise_exception_class(exception_class)

Raise an exception class, if it was collected.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception pydent.marshaller.exceptions.RunTimeCallbackAttributeError[source]

Bases: AttributeError

Error that occurs during executing a field callback.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception pydent.marshaller.exceptions.SchemaException[source]

Bases: pydent.marshaller.exceptions.MarshallerBaseException

A generic schema exception.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception pydent.marshaller.exceptions.SchemaModelException[source]

Bases: pydent.marshaller.exceptions.MarshallerBaseException

A generic model exception.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception pydent.marshaller.exceptions.SchemaRegistryError[source]

Bases: pydent.marshaller.exceptions.MarshallerBaseException

Generic schema registry exception.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.