Source code for exceltablekit.errors.styles
from exceltablekit.errors.base import ExcelTableKitError
[docs]
class TableBackgroundError(ExcelTableKitError):
def __init__(self, error: Exception) -> None:
super().__init__(f"Failed to apply background color to the table: {error}")
[docs]
class TableFontError(ExcelTableKitError):
def __init__(self, error: Exception) -> None:
super().__init__(f"Failed to apply font style to the table: {error}")
[docs]
class TableAlignmentError(ExcelTableKitError):
def __init__(self, error: Exception) -> None:
super().__init__(f"Failed to apply text alignment to the table: {error}")
[docs]
class TableBorderError(ExcelTableKitError):
def __init__(self, error: Exception) -> None:
super().__init__(f"Failed to apply borders to the table: {error}")
[docs]
class HeaderTableBackgroundError(ExcelTableKitError):
def __init__(self, error: Exception) -> None:
super().__init__(
f"Failed to apply background color to the table header: {error}"
)
[docs]
class HeaderTableFontError(ExcelTableKitError):
def __init__(self, error: Exception) -> None:
super().__init__(f"Failed to apply font style to the table header: {error}")
[docs]
class HeaderTableAlignmentError(ExcelTableKitError):
def __init__(self, error: Exception) -> None:
super().__init__(f"Failed to apply text alignment to the table header: {error}")
[docs]
class HeaderTableBorderError(ExcelTableKitError):
def __init__(self, error: Exception) -> None:
super().__init__(f"Failed to apply borders to the table header: {error}")
[docs]
class HeaderTableFreezeError(ExcelTableKitError):
def __init__(self, error: Exception) -> None:
super().__init__(f"Failed to freeze the table header rows: {error}")
[docs]
class TableColumnWidthError(ExcelTableKitError):
def __init__(self, error: Exception) -> None:
super().__init__(f"Failed to auto-fit column widths: {error}")