errorCodeOf
@forge/monorepo / backend/src / errorCodeOf
Function: errorCodeOf()
errorCodeOf(
error):string
Defined in: backend/src/telemetry/index.ts:138
A classified code for a thrown value, and nothing else.
Reads code when the platform's own error carries one, and otherwise reports the constructor name. Never the
message: this function's whole job is to be the place that refuses to pass one through.
Parameters
error
unknown
Returns
string