You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`fix: string`][error-property-fix]| A possible solution to the described [`problem`][error-property-problem] of validation that is guarded by a [`string`][js-string] type. |
149
-
|[`message: string`][error-property-message]| A validation error message guarded by a [`string`][js-string] type that can be built with the [`problem`][error-property-problem] and [`fix`][error-property-fix] of [`ValidationError`](#validationerror) by the [`throw()`][error-method-throw] and [`setMessage()`][error-method-setmessage] method. |
149
+
|[`message: string`][error-property-message]| A validation error message guarded by a [`string`][js-string] type that can be built with the [`problem`][error-property-problem] and [`fix`][error-property-fix] of [`ValidationError`](#validationerror)on the [`template`][error-property-template]by the [`throw()`][error-method-throw] and [`setMessage()`][error-method-setmessage] method. |
150
150
|[`name: string`][error-property-name]| Error name of a [`string`][js-string] type that is being thrown. |
151
-
|[`problem: string`][error-property-problem]| Description of a validation problem guarded by a [`string`][js-string] type. |
151
+
|[`problem: string`][error-property-problem]| Description of a validation [`problem`][error-property-problem] guarded by a [`string`][js-string] type. |
|[`setFix()`][error-method-setfix]| Sets the fix a possible solution to the described [`problem`][error-property-problem]. |
175
175
|[`setMessage()`][error-method-setmessage]| Sets the validation error message of a [`string`][js-string] type from the provided `message` of the [`ErrorMessage`](#errormessage) interface. |
176
-
|[`setProblem()`][error-method-setproblem]| Sets description problem of a [`ValidationError`](#validationerror). |
176
+
|[`setProblem()`][error-method-setproblem]| Sets description problem of a validation. |
177
177
|[`setTemplate()`][error-method-settemplate]| Sets the template of validation error message. |
178
178
|[`throw()`][error-method-throw]| Throws an error of [`ValidationError`](#validationerror) with actual settings. |
179
179
|[`updateMessage()`][error-method-updatemessage]| Updates the message with a stored [`fix`][error-property-fix], [`problem`][error-property-problem], and [`template`][error-property-template]. |
@@ -195,7 +195,7 @@ Manages an [`Error`][js-error] of validation.
195
195
196
196
![update]
197
197
198
-
**`2.0.0`:** Uses static private property `#template` and guards the value with private static method `#guardTemplate()` to be `string` type that contains `[fix]` and `[problem]` words.
198
+
**`2.0.0`:** Uses static private property `#template` and guards the value with private static method `#guardTemplate()` to be [`string`][js-string] type that contains `[fix]` and `[problem]` words.
199
199
200
200
A template of the error message guarded by [`string`][js-string] type with the replaceable `[problem]` and `[fix]` words. By default, it's set to `Problem: [problem] => Fix: [fix]`. It can be set directly or by the [`setTemplate()`][error-method-settemplate] and [`setMessage()`][error-method-setmessage] method. The value is being checked against the existence of `[problem]` and `[fix]` words.
201
201
@@ -239,7 +239,7 @@ public set fix(value: string) {
239
239
240
240
![update]
241
241
242
-
**`2.0.0`:** Uses inherited from `Error` property and guards the value to be a [`string`][js-string] type.
242
+
**`2.0.0`:** Uses inherited from [`Error`][js-error] property and guards the value to be a [`string`][js-string] type.
243
243
244
244
A validation error message guarded by a [`string`][js-string] type that can be build from the [`problem`][error-property-problem] and [`fix`][error-property-fix] of [`ValidationError`](#validationerror) on the [`template`][error-property-template]. It can be set directly or by the [`throw()`][error-method-throw] and [`setMessage()`][error-method-setmessage] method.
|`fix: string`| A possible solution to the described[`problem`][error-property-problem] guarded by a [`string`][js-string] type. |
694
-
|`callback?: ResultCallback<CallbackPayload>`| An optional callback function of [`ResultCallback`][package-callback-resultcallback] type to handle the check whether the provided `fix` is a [`string`][js-string]. By default, it uses an internal callback under the `'setProblem'` name, which can be initially set by the optional `callback` parameter that gives access to the internal instance of [`Callback`][callback-github-readme]. |
693
+
|`problem: string`| Description of a validation[`problem`][error-property-problem] guarded by a [`string`][js-string] type. |
694
+
|`callback?: ResultCallback<CallbackPayload>`| An optional callback function of [`ResultCallback`][package-callback-resultcallback] type to handle the check whether the provided `problem` is a [`string`][js-string]. By default, it uses an internal callback under the `'setProblem'` name, which can be initially set by the optional `callback` parameter that gives access to the internal instance of [`Callback`][callback-github-readme]. |
0 commit comments