API - Exceptions¶
The module’s exceptions and warnings are typically imported like so:
from mosromgr.exc import MosRoMgrException
The library’s base warning is MosRoMgrWarning
and others are detailed
below.
Errors¶
MosRoMgrException¶
UnknownMosFileType¶
-
exception
mosromgr.exc.
UnknownMosFileType
[source]¶ Bases:
mosromgr.exc.MosRoMgrException
Exception raised when a MOS file type cannot be determined
MosMergeError¶
-
exception
mosromgr.exc.
MosMergeError
[source]¶ Bases:
mosromgr.exc.MosRoMgrException
Exception raised when MOS merge fails
MosCompletedMergeError¶
-
exception
mosromgr.exc.
MosCompletedMergeError
[source]¶ Bases:
mosromgr.exc.MosMergeError
Exception raised when MOS merge is attempted on a completed
RunningOrder
InvalidMosCollection¶
-
exception
mosromgr.exc.
InvalidMosCollection
[source]¶ Bases:
mosromgr.exc.MosRoMgrException
Exception raised when MosCollection fails validation
MosInvalidXML¶
-
exception
mosromgr.exc.
MosInvalidXML
[source]¶ Bases:
mosromgr.exc.MosRoMgrException
Exception raised when
MosFile
cannot parse given XML
Warnings¶
MosRoMgrWarning¶
ItemNotFoundWarning¶
-
exception
mosromgr.exc.
ItemNotFoundWarning
[source]¶ Bases:
mosromgr.exc.MosRoMgrWarning
Warning raised when an item cannot be found during a
MosFile
merge
StoryNotFoundWarning¶
-
exception
mosromgr.exc.
StoryNotFoundWarning
[source]¶ Bases:
mosromgr.exc.MosRoMgrWarning
Warning raised when a story cannot be found during a
MosFile
merge
DuplicateStoryWarning¶
-
exception
mosromgr.exc.
DuplicateStoryWarning
[source]¶ Bases:
mosromgr.exc.MosRoMgrWarning
Warning raised when a story being added is already found during a
EAStoryInsert
merge