API reference / @jsprismarine/errors / common
common
Variables
CommonErrors
constCommonErrors:Readonly<{ThrownValue: typeofThrownValue; }>
Defined in: packages/errors/src/common.ts:40
Errors any package may raise, not tied to one domain.
Functions
asError()
asError(
value):Error
Defined in: packages/errors/src/common.ts:46
A thrown value as an Error: itself when it is one, otherwise wrapped so its text survives into a log or a rejection that expects an Error.
Parameters
value
unknown
Returns
Error