Source code for complexity.exceptions
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
complexity.exceptions
---------------------
All exceptions used in the Complexity code base are defined here.
"""
[docs]class ComplexityException(Exception):
"""
Base exception class. All Complexity-specific exceptions subclass
`ComplexityException`.
"""
[docs]class MissingTemplateDirException(ComplexityException):
"""
Raised when a project is missing a `templates/` subdirectory.
"""
[docs]class NonHTMLFileException(ComplexityException):
"""
Raised when a project's `templates/` directory contains a non-HTML file.
"""
[docs]class OutputDirExistsException(ComplexityException):
"""
Raised when a project's output_dir exists and no_input=True.
"""