checkLzmaError

fnvoid checkLzmaError(lzma_ret rc, string context = "")

Throws an LzmaException if the given return code is an error.

Parameters

rcThe return value from a liblzma function.
contextOptional context string for the error message.

Throws

LzmaException if rc is an error.