File: errors.py

package info (click to toggle)
python-pylatex 1.4.2%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,044 kB
  • sloc: python: 3,810; sh: 209; makefile: 169; xml: 12
file content (23 lines) | stat: -rw-r--r-- 524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- coding: utf-8 -*-
"""
This module implements Error classes.

..  :copyright: (c) 2015 by Rene Beckmann.
    :license: MIT, see License for more details.
"""


class PyLaTeXError(Exception):
    """A Base class for all PyLaTeX Exceptions."""


class CompilerError(PyLaTeXError):
    """A Base class for all PyLaTeX compiler related Exceptions."""


class TableError(PyLaTeXError):
    """A Base class for all errors concerning tables."""


class TableRowSizeError(TableError):
    """Error for wrong table row size."""