Function: convertError()
convertError(
error
:unknown
): {error
:Error
;originalType
:string
;wasError
:boolean
; }
Defined in: src/utils/errorHandling.ts:32
Enhanced error conversion that provides detailed type information.
Parametersโ
errorโ
unknown
Unknown error value from catch blocks
Returnsโ
Detailed error conversion result
errorโ
error:
Error
The resulting https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error instance
originalTypeโ
originalType:
string
The original input type information
wasErrorโ
wasError:
boolean
Whether the input was already an https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error instance