Files
dungeon-sheets/dungeonsheets/exceptions.py
T
Mark Wolfman 30369ce1d4 Ran flake8 and black linters, and other cleanup-related fixes.
Project now passes flake8 and black linter (also including more rst
cleanup). Moved latex related things to dedicated ``latex.py`` module,
and removed the ``makesheets -dF`` call from travis.
2021-04-16 11:10:17 -05:00

27 lines
651 B
Python

class CharacterFileFormatError(ValueError):
"""The given file is not a valid Dungeons and Dragons file."""
class DiceError(ValueError):
"""Improper formatting for a dice string."""
class LatexError(OSError):
"""PDFLatex did not execute correctly."""
class LatexNotFoundError(LatexError):
"""PDFLatex did not execute correctly."""
class MonsterError(AttributeError):
"""Error retriving or using a D&D Monster."""
class JSONFormatError(RuntimeError):
"""The JSON file doesn't conform to the understood formats."""
class UnknownFileType(RuntimeError):
"""The input file does not match one of the known formats."""