pydent.marshaller.exceptions¶
Marshalling exceptions.
Exceptions
A field validation error for getting or setting None values. |
|
A generic callback validation error. |
|
|
Context dependent exception for capturing multiple exceptions. |
A generic field validation error. |
|
Model not found in registry exception. |
|
A model validation error. |
|
|
Model validation exception. |
Error that occurs during executing a field callback. |
|
A generic schema exception. |
|
A generic model exception. |
|
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.
-
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.
-