class PatchError(Exception): """A patch cannot be applied, so nothing was written.""" class DefinitionError(PatchError): """A patch definition on disk is malformed.""" class LocateError(PatchError): """A patch site could not be found, or was found in more than one place. The caller reports which patches are affected and which features depend on them; it never falls back to a guessed address. """ class VerifyError(PatchError): """The bytes at a located site are not what the definition expects. Either the game version differs more than the signature could detect, or the executable is already patched. """