formatError

external fun formatError(obj: Any): String(source)

Formats an error object into a String. If available, uses name, message, and stack properties, otherwise, falls back on toString().

Return

A string containing the formatted error.

Parameters

object

The item to find in the array.

See also