function throwIfError(errCode) {
    if (errCode !== 0) {
        throw H3LibraryError(errCode);
    }
}
Throw a JavaScript error if the C library return code is an error
@private
@param {number} errCode     Error code from the H3 library
@throws {Error} Error if err is not E_SUCCESS (0)