exceptions.py 506 B

12345678910111213141516
  1. class MarshmallowSQLAlchemyError(Exception):
  2. """Base exception class from which all exceptions related to
  3. marshmallow-sqlalchemy inherit.
  4. """
  5. class ModelConversionError(MarshmallowSQLAlchemyError):
  6. """Raised when an error occurs in converting a SQLAlchemy construct
  7. to a marshmallow object.
  8. """
  9. class IncorrectSchemaTypeError(ModelConversionError):
  10. """Raised when a ``SQLAlchemyAutoField`` is bound to ``Schema`` that
  11. is not an instance of ``SQLAlchemySchema``.
  12. """