ReadonlynameAlways "LifeHashError"; the cross-copy identity LifeHashError.isLifeHashError checks.
ReadonlycodeThe discriminant; equals details.code.
ReadonlydetailsThe structured payload, discriminated by code.
StaticisType guard for a LifeHashError, including one from another copy of this package.
StaticinvalidStaticinvalidStaticmodulevalue would make the image larger than 2 ** 53 - 1 bytes; max is the largest allowed.
StaticinvalidStaticinvalidparameter received value, which is not of the required type.
Thrown for an unknown version name (
InvalidVersion), a module size that is not a positive integer or whose image would hold more bytes than anumbercan count (InvalidModuleSize), a digest that is not 32 bytes (InvalidDigestLength), and an argument of the wrong type (InvalidArgument). Every check runs before any rendering. Instances come from the static factories only.Example