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.
AssetTooLargeError
Size of the asset, in bytes.
Maximum allowed size, in bytes. 0 (or any other non-finite/negative value) resolves to DEFAULT_MAX_SIZE_IN_BYTES.
0
Optional
Static
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Create .stack property on a target object
Error type for handling asset validation issues.
DO NOT construct an
AssetTooLargeErrordirectly; instead, use the validateAssetSize function to validate a given asset's size against a maximum limit.