Constructor
new FormattedError(message, paramsopt, contextopt, nullable)
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
message |
string | The error message. |
||
params |
Object.<string, string> | Array.<string> |
<optional> |
{}
|
The parsed parameters Parserror. When parsing a case that uses named groups, the
parameters are stored on an |
context |
Object |
<optional> <nullable> |
null
|
Any extra context information for the error. |
Extends
Members
context :Object
- Source:
- To Do:
-
- Remove `Object.freeze`.
Any extra context information for the error.
Type:
params :Object.<string, string>|Array.<string>
- Source:
- To Do:
-
- Remove `Object.freeze`.
The parsed parameters Parserror found. When parsing a case that uses named groups,
the parameters are stored on an object
; otherwise, they'll be an array
.