Construct a typed error with an optional original cause and safe context.
Optionalcause?: unknownOriginal underlying failure.
Optionalcontext?: Record<string, unknown>Safe diagnostic fields for the affected operation.
OptionalcleanupSecondary failures such as an unsuccessful multipart abort; the primary cause remains preserved.
ReadonlycodeFailure category suitable for branching independently of the human-readable message.
ReadonlycontextAvailable page, image, key or other operation context. Do not attach credentials.
Typed failure preserving a primary cause, operation context and any cleanup failures.