@corefunc/corefunc
Preparing search index...
convert
convertErrorToJson
Function convertErrorToJson
convertErrorToJson
(
error
:
|
RangeError
|
Error
|
EvalError
|
ReferenceError
|
SyntaxError
|
TypeError
|
URIError
|
Record
<
string
,
any
>
,
shouldRemoveStackTrace
?:
boolean
,
)
:
Record
<
string
,
string
>
Parameters
error
:
|
RangeError
|
Error
|
EvalError
|
ReferenceError
|
SyntaxError
|
TypeError
|
URIError
|
Record
<
string
,
any
>
Optional
shouldRemoveStackTrace
:
boolean
= false
Returns
Record
<
string
,
string
>
Name
convertErrorToJson
Description
Converts Error type to plain JSON object.
Since
0.1.40
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@corefunc/corefunc
Loading...
Name
convertErrorToJson
Description
Converts Error type to plain JSON object.
Since
0.1.40