wiithon.exceptions module

Exception hierarchy for wiithon

Everything raised by this library because of data derives from WiithonError Invalid arguments still raise the usual builtins (ValueError, TypeError)

This module must not import anything from wiithon

exception wiithon.exceptions.WiithonError[source]

Bases: Exception

Base class for every wiithon error

exception wiithon.exceptions.BinaryError[source]

Bases: WiithonError

Reading or writing past the bounds of a stream

exception wiithon.exceptions.InvalidFormatError[source]

Bases: WiithonError

Magic word missing or wrong: the data is not of the expected format

exception wiithon.exceptions.InvalidDiscError[source]

Bases: InvalidFormatError

The file is not a valid Wii disc image

exception wiithon.exceptions.CorruptedDataError[source]

Bases: WiithonError

Header parsed, but the content is inconsistent (bad hash, bad sizes)

exception wiithon.exceptions.NoDataPartitionError[source]

Bases: WiithonError

The disc image has no DATA partition

exception wiithon.exceptions.FstError[source]

Bases: WiithonError

Error while walking the disc File System Table

exception wiithon.exceptions.FstFileNotFoundError[source]

Bases: FstError, FileNotFoundError

No such path in the FST

exception wiithon.exceptions.FstIsADirectoryError[source]

Bases: FstError, IsADirectoryError

The FST path points at a directory, a file was expected

exception wiithon.exceptions.ArchiveError[source]

Bases: WiithonError

Error while reading or editing an archive

exception wiithon.exceptions.ArchiveFileNotFoundError[source]

Bases: ArchiveError, FileNotFoundError

No such path inside the archive

exception wiithon.exceptions.ArchiveIsADirectoryError[source]

Bases: ArchiveError, IsADirectoryError

The archive path points at a directory, a file was expected

exception wiithon.exceptions.ArchiveEntryExistsError[source]

Bases: ArchiveError, FileExistsError

An entry with this name already exists in the target directory

exception wiithon.exceptions.BCSVFileError[source]

Bases: InvalidFormatError

Thrown when an error occurs while parsing/writing BCSV data.

exception wiithon.exceptions.DolError[source]

Bases: WiithonError

Error while inspecting or patching a DOL executable

exception wiithon.exceptions.DolSectionNotFoundError[source]

Bases: DolError

No DOL section covers the requested virtual address

exception wiithon.exceptions.DolSectionOverlapError[source]

Bases: DolError

The requested virtual address already belongs to a section

exception wiithon.exceptions.DolNoFreeSectionError[source]

Bases: DolError

All text or data section slots are already used