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
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,6 +190,8 @@ Manages an [`Error`][js-error] of validation.
190
190
191
191
#### `ValidationError.template`
192
192
193
+
![update]
194
+
193
195
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]`.
194
196
195
197
```typescript
@@ -211,6 +213,8 @@ static set template(value: string) {
211
213
212
214
#### `ValidationError.prototype.fix`
213
215
216
+
![update]
217
+
214
218
A possible solution to the described [`problem`][error-property-problem] of validation that is guarded by a [`string`][js-string] type. By default, it's an empty [`string`][js-string].
215
219
216
220
```typescript
@@ -241,6 +245,8 @@ public get message(): string {
241
245
242
246
#### `ValidationError.prototype.name`
243
247
248
+
![update]
249
+
244
250
Error name of a [`string`][js-string] type that is being thrown. By default, it's ['ValidationError'](#validationerror).
245
251
246
252
```typescript
@@ -251,6 +257,8 @@ public name = ValidationError.name;
251
257
252
258
#### `ValidationError.prototype.problem`
253
259
260
+
![update]
261
+
254
262
Description of a validation [`problem`][error-property-problem] guarded by a [`string`][js-string] type. By default, it's an empty [`string`][js-string].
0 commit comments