# Errors

The exceptions xlspy raises.

[API reference](<https://justybase.github.io/xlspy/api/index.md>) · [Guide](<https://justybase.github.io/xlspy/usage/index.md>)

## XlspyError

Bases: `Exception`

Base class for the errors xlspy raises deliberately.

## InvalidFileError

Bases: `XlspyError`, `ValueError`, `BadZipFile`

The file is not a readable XLSX, XLSM or XLSB package.

Raised when the file is not a ZIP archive, or when a part holds data the readers cannot decode (malformed XML, bad text encoding, truncated or inconsistent records). The message names the file and what failed; the decoder's own error is chained as `__cause__`.

## UnsupportedFeatureError

Bases: `XlspyError`, `NotImplementedError`

The workbook or the call uses a feature xlspy does not support yet.
