@contentauth/c2pa-js
    Preparing search index...

    Error type for handling asset validation issues.

    DO NOT construct an AssetTooLargeError directly; instead, use the validateAssetSize function to validate a given asset's size against a maximum limit.

    Hierarchy

    • Error
      • AssetTooLargeError
    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • sizeInBytes: number

        Size of the asset, in bytes.

      • maxSizeInBytes: number

        Maximum allowed size, in bytes. 0 (or any other non-finite/negative value) resolves to DEFAULT_MAX_SIZE_IN_BYTES.

      Returns AssetTooLargeError

    Properties

    cause?: unknown
    message: string
    name: string
    stack?: string