LokvisStorageError
Defined in: packages/ui-react/src/hooks/storage-errors.ts:26
结构化本地存储错误:携带 code + i18n 键 + 参数
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new LokvisStorageError(
code,messageKey,fallbackMessage,params?):LokvisStorageError
Defined in: packages/ui-react/src/hooks/storage-errors.ts:34
Parameters
Section titled “Parameters”messageKey
Section titled “messageKey”string
fallbackMessage
Section titled “fallbackMessage”string
params?
Section titled “params?”Record<string, unknown>
Returns
Section titled “Returns”LokvisStorageError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”
readonlycode:LokvisStorageErrorCode
Defined in: packages/ui-react/src/hooks/storage-errors.ts:28
稳定错误码
messageKey
Section titled “messageKey”
readonlymessageKey:string
Defined in: packages/ui-react/src/hooks/storage-errors.ts:30
i18n 键,供 UI 层 t(messageKey, params) 解析
params?
Section titled “params?”
readonlyoptionalparams?:Record<string,unknown>
Defined in: packages/ui-react/src/hooks/storage-errors.ts:32
i18n 插值参数