Source code for mosromgr.exc

# mosromgr: Python library for managing MOS running orders
# Copyright 2021 BBC
# SPDX-License-Identifier: Apache-2.0

[docs]class MosRoMgrException(Exception): "Base class for all ``mosromgr`` exceptions"
[docs]class UnknownMosFileType(MosRoMgrException): "Exception raised when a MOS file type cannot be determined"
[docs]class MosMergeError(MosRoMgrException): "Exception raised when MOS merge fails"
[docs]class MosCompletedMergeError(MosMergeError): "Exception raised when MOS merge is attempted on a completed :class:`~mosromgr.mostypes.RunningOrder`"
[docs]class InvalidMosCollection(MosRoMgrException): "Exception raised when MosCollection fails validation"
[docs]class MosInvalidXML(MosRoMgrException): "Exception raised when :class:`~mosromgr.mostypes.MosFile` cannot parse given XML"
[docs]class MosRoMgrWarning(Warning): "Base class for all warnings in mosromgr"
[docs]class MosMergeNonStrictWarning(MosRoMgrWarning): "Warning raised when a merge error occurs in non-strict mode"
[docs]class ItemNotFoundWarning(MosRoMgrWarning): "Warning raised when an item cannot be found during a :class:`~mosromgr.mostypes.MosFile` merge"
[docs]class StoryNotFoundWarning(MosRoMgrWarning): "Warning raised when a story cannot be found during a :class:`~mosromgr.mostypes.MosFile` merge"
[docs]class DuplicateStoryWarning(MosRoMgrWarning): "Warning raised when a story being added is already found during a :class:`~mosromgr.mostypes.EAStoryInsert` merge"