CompressionError with an ErrorCode mapped from the libzstd error
and the original zstd error name in the message.
void throwZstdError(size_t rc, string context)Throw a CompressionError classified from a ZSTD return code.
rc | The return value from a libzstd function (must be an error). |
context | A context string identifying the operation that failed. |
CompressionError with an ErrorCode mapped from the libzstd error
and the original zstd error name in the message.