@contentauth/c2pa-node 0.9.10
    Preparing search index...

    Class AssetTooLargeError

    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

    • 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
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void