Skip to content

ReleaseAssetChecksumError

Thrown when downloaded bytes do not match the expected SHA-256. Nothing was written.

Import:

import { ReleaseAssetChecksumError } from '@mnaoumov/obsidian-lib/release-asset';

Signature:

export class ReleaseAssetChecksumError extends Error

Extends: Error

Constructor

new ReleaseAssetChecksumError(params: ReleaseAssetChecksumErrorConstructorParams)

Creates the error.

Properties

PropertyTypeDescription
actualSha256stringThe SHA-256 of the downloaded bytes.
expectedSha256stringThe expected SHA-256.
urlstringThe URL the asset was downloaded from.

Links to this page: