Source code for marshmallow_mongoengine.exceptions

# -*- coding: utf-8 -*-


class MarshmallowMongoengineError(Exception):
    """Base exception class from which all exceptions related to
    marshmallow-mongoengine inherit.
    """
    pass


[docs]class ModelConversionError(MarshmallowMongoengineError): """Raised when an error occurs in converting a Mongoengine construct to a marshmallow object. """ pass