Source code for invenio_records.errors
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Errors for Invenio-Records module."""
from __future__ import absolute_import, print_function
[docs]class RecordsError(Exception):
"""Base class for errors in Invenio-Records module."""
[docs]class MissingModelError(RecordsError):
"""Error raised when a record has no model."""