Optionalhint?: "event-gated" | "legacy-candidate"event-gated: a provider exists but only activates on a runtime event, so it cannot
satisfy a startup requirement. legacy-candidate: a legacy module may provide it.
Optionalregistered?: string[]OptionalcauseOptionalstackStaticnameStatic OptionalprepareStaticstackFallback message.
StaticcaptureOptionalconstructorOpt: FunctionStaticextendStaticisName equality, not an instanceof, so an error rebuilt from the wire still matches.
A subclass that renames itself therefore does NOT match its parent, so define
siblings rather than a renaming subclass.
StaticisStaticwrapReturns a catch/mapError callback that wraps a thrown value in this class.
Optionaloptions: Omit<BaseErrorOptions, "cause"> & { ifTypeDiffers?: boolean }Pass an error of this class through untouched.
OptionalifTypeDiffers?: booleanPass an error of this class through untouched.
A dependency-mode module requires a singleton capability with no eligible provider.