throwLzmaError

private fnvoid throwLzmaError(lzma_ret rc, string context)

Throw a CompressionError classified from an lzma_ret return code.

Parameters

rcThe return value from a liblzma function (must be an error).
contextA context string identifying the operation that failed.

Throws

CompressionError with an ErrorCode mapped from the liblzma error

and the original lzma error name in the message.