exceptions.py 369 B

123456789101112131415
  1. # -*- coding: utf-8 -*-
  2. class MarshmallowMongoengineError(Exception):
  3. """Base exception class from which all exceptions related to
  4. marshmallow-mongoengine inherit.
  5. """
  6. pass
  7. class ModelConversionError(MarshmallowMongoengineError):
  8. """Raised when an error occurs in converting a Mongoengine construct
  9. to a marshmallow object.
  10. """
  11. pass