-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
948 lines (724 loc) · 21.6 KB
/
Copy pathindex.html
File metadata and controls
948 lines (724 loc) · 21.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
<!doctype html>
<html lang="en">
<head>
<meta charset='utf-8'>
<title>ec.errors 0.2.12 | Documentation</title>
<meta name='description' content='Module for error codes used by all entrecode products. By entrecode.'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' rel='stylesheet'>
<link href='assets/style.css' rel='stylesheet'>
<link href='assets/github.css' rel='stylesheet'>
<link href='assets/split.css' rel='stylesheet'>
</head>
<body class='documentation m0'>
<div class='flex'>
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
<div class='py1 px2'>
<h3 class='mb0 no-anchor'>ec.errors</h3>
<div class='mb1'><code>0.2.12</code></div>
<input
placeholder='Filter'
id='filter-input'
class='col12 block input'
spellcheck='false'
autocapitalize='off'
autocorrect='off'
type='text' />
<div id='toc'>
<ul class='list-reset h5 py1-ul'>
<li><a
href='#getting-started'
class="h5 bold black caps">
Getting Started
</a>
</li>
<li><a
href='#error-codes'
class="h5 bold black caps">
Error codes
</a>
</li>
<li><a
href='#api-doc'
class="h5 bold black caps">
API Doc
</a>
</li>
<li><a
href='#newerror'
class="">
newError
</a>
</li>
<li><a
href='#convertvalidationerror'
class="">
convertValidationError
</a>
</li>
<li><a
href='#getlocalised'
class="">
getLocalised
</a>
</li>
<li><a
href='#impressum--datenschutz'
class="h5 bold black caps">
Impressum & Datenschutz
</a>
</li>
</ul>
</div>
<div class='mt1 h6 quiet'>
<a href='https://documentation.js.org/reading-documentation.html'>Need help reading this?</a>
</div>
</div>
</div>
<div id='split-right' class='relative overflow-auto height-viewport-100'>
<div class='keyline-top-not py2'><section class='py2 clearfix'>
<h2 id='getting-started' class='mt0'>
Getting Started
</h2>
<h1>ec.errors</h1>
<blockquote>
<p>Module for error codes used by all entrecode products. By entrecode.</p>
</blockquote>
<h2>Installation</h2>
<h2>Basic Usage</h2>
<h2>Configuration</h2>
<p>This module has the following configuration options (and their defaults). In order to overwrite with your own config pass an object to the require call.</p>
<h2>Changelog</h2>
<h3>v0.2.0</h3>
<ul>
<li>removed <code>node-config</code></li>
<li>switched to module factory style module to support frontend transpilation</li>
</ul>
<h4>v0.1.3</h4>
<ul>
<li>fix: load errorCodes with file extension, should fix webpack build</li>
</ul>
<h4>v0.1.2</h4>
<ul>
<li>feat: adds typings</li>
</ul>
<h4>v0.1.1</h4>
<ul>
<li>fix: fixed error array conversion in mapTV4Error</li>
</ul>
<h3>v0.1.0</h3>
<ul>
<li>initial version published from private module ec.appcms-node-util</li>
<li>feat: newError(code, detail, verbose) for error creation</li>
<li>feat: convertValidationError(tv4Result) for mapping tv4 validation errors into entrecode style errors</li>
</ul>
</section></div>
<div class='keyline-top-not py2'><section class='py2 clearfix'>
<h2 id='error-codes' class='mt0'>
Error codes
</h2>
<h1>Error Codes</h1>
<table>
<thead>
<tr>
<th>code</th>
<th>message</th>
<th>message (de)</th>
<th>status</th>
</tr>
</thead>
<tbody>
<tr>
<td>100</td>
<td>Resource not found</td>
<td>Resource nicht gefunden</td>
<td>404</td>
</tr>
<tr>
<td>101</td>
<td>No resource entity matching body property filter found</td>
<td>Keine zu den Body-Parametern passende Resource gefunden</td>
<td>404</td>
</tr>
<tr>
<td>102</td>
<td>No resource entity matching query string filter found</td>
<td>Keine zu den Query-Parametern passende Resoruce gefunden</td>
<td>404</td>
</tr>
<tr>
<td>110</td>
<td>Method not allowed</td>
<td>Methode nicht erlaubt</td>
<td>405</td>
</tr>
<tr>
<td>112</td>
<td>Somebody else changed the resource</td>
<td>Resource wurde von jemand anderem verändert</td>
<td>412</td>
</tr>
<tr>
<td>150</td>
<td>Error in Remote API</td>
<td>Fehler in Remote-API</td>
<td>400</td>
</tr>
<tr>
<td>200</td>
<td>Missing body</td>
<td>Fehlender Body</td>
<td>400</td>
</tr>
<tr>
<td>201</td>
<td>Missing property in JSON body</td>
<td>Fehlender Parameter im JSON Body</td>
<td>400</td>
</tr>
<tr>
<td>202</td>
<td>Missing property in query string</td>
<td>Fehlender Parameter im Query-String</td>
<td>400</td>
</tr>
<tr>
<td>203</td>
<td>Missing file in upload</td>
<td>undefined</td>
<td>400</td>
</tr>
<tr>
<td>204</td>
<td>Missing HAL link or embed in JSON body</td>
<td>Fehlender HAL Link oder eingebettete Resource</td>
<td>400</td>
</tr>
<tr>
<td>211</td>
<td>Invalid format for property in JSON body</td>
<td>Fehlerhaftes format für JSON Body Parameter</td>
<td>400</td>
</tr>
<tr>
<td>212</td>
<td>Invalid format for property in query string</td>
<td>Fehlerhaftes format für Query-String Parameter</td>
<td>400</td>
</tr>
<tr>
<td>213</td>
<td>Invalid file format in upload</td>
<td>Fehlerhaftes Dateiformat im Upload</td>
<td>400</td>
</tr>
<tr>
<td>214</td>
<td>Invalid linked or embedded HAL resource in JSON body, or link not found</td>
<td>Fehlerhafte verlinkte oder eingebettete HAL Resrouce im JSON Body, oder Linkt nicht gefunden</td>
<td>400</td>
</tr>
<tr>
<td>215</td>
<td>Resource cannot be sorted after given property</td>
<td>Resource kann nicht mit übergebenem Parameter sortiert werden</td>
<td>400</td>
</tr>
<tr>
<td>216</td>
<td>Resource cannot be filtered with given property</td>
<td>Resource kann nicht mit übergebenem Parameter gefiltert werden</td>
<td>400</td>
</tr>
<tr>
<td>217</td>
<td>Resource cannot be range-filtered with given property</td>
<td>Resource kann nicht mit übergebenem Parameter bereichs-gefiltert werden</td>
<td>400</td>
</tr>
<tr>
<td>251</td>
<td>Password is too short (min. 4 characters)</td>
<td>Passwort zu kurt (min. 4 Zeichen)</td>
<td>400</td>
</tr>
<tr>
<td>252</td>
<td>Unmatched validation error</td>
<td>Nicht abgefangener Validierungsfehler</td>
<td>400</td>
</tr>
<tr>
<td>253</td>
<td>Invalid asset to merge</td>
<td>Fehlerhaftes Asset zum Zusammenführen</td>
<td>400</td>
</tr>
<tr>
<td>254</td>
<td>Exceeded maximum levels for nested request.</td>
<td>undefined</td>
<td>400</td>
</tr>
<tr>
<td>255</td>
<td>Could not get nested resources.</td>
<td>Konnte eingebettete Resource nicht laden</td>
<td>400</td>
</tr>
<tr>
<td>256</td>
<td>Could not create download file.</td>
<td>Konnte Download Datei nicht erstellen</td>
<td>400</td>
</tr>
<tr>
<td>257</td>
<td>Could not load asset by url.</td>
<td>Konnte Asset per url nicht laden.</td>
<td>400</td>
</tr>
<tr>
<td>311</td>
<td>Invalid value for property in JSON body</td>
<td>Fehlerhaftes Wert für Parameter im JSON Body</td>
<td>400</td>
</tr>
<tr>
<td>351</td>
<td>Email address is unavailable</td>
<td>E-Mail-Adresse nicht verfügbar</td>
<td>403</td>
</tr>
<tr>
<td>352</td>
<td>Cannot delete openID connection</td>
<td>Kann openID Verbindung nicht löschen</td>
<td>403</td>
</tr>
<tr>
<td>353</td>
<td>Duplicate model/assetgroup in same data manager</td>
<td>Doppeltes Model/doppelte Asset Group im gleichen DataManager</td>
<td>403</td>
</tr>
<tr>
<td>354</td>
<td>Cannot delete model, has entries</td>
<td>Kann Model nicht löschen, hat Entries</td>
<td>403</td>
</tr>
<tr>
<td>355</td>
<td>Kann Model nicht löschen, zwingend notwendig</td>
<td>undefined</td>
<td>403</td>
</tr>
<tr>
<td>356</td>
<td>Cannot change Model, has Entries.</td>
<td>Kann Model nicht ändern, hat Entries</td>
<td>403</td>
</tr>
<tr>
<td>357</td>
<td>Model must support default locale</td>
<td>Model muss standart Localisierung unterstützen</td>
<td>400</td>
</tr>
<tr>
<td>358</td>
<td>Unsupported locale</td>
<td>Nicht unterstützte Localisierung</td>
<td>400</td>
</tr>
<tr>
<td>359</td>
<td>Violates unique constraint</td>
<td>Verletzt Einzigartigkeit</td>
<td>400</td>
</tr>
<tr>
<td>360</td>
<td>Cannot delete entry. Referenced as required.</td>
<td>Kann Entry nicht löschen. Als erforderlich referenziert</td>
<td>400</td>
</tr>
<tr>
<td>361</td>
<td>Cannot change entry. Read Only.</td>
<td>Kann entry nicht ändern. Ist Schreibgeschützt</td>
<td>403</td>
</tr>
<tr>
<td>362</td>
<td>Cannot change entry. Reference not allowed due to type validation.</td>
<td>Kann Entry nicht ändern. Referenz nicht erlaubt, fehlerhafte Typ-Validierung</td>
<td>400</td>
</tr>
<tr>
<td>363</td>
<td>Cannot change Model, edit of mandatory/unmutable field.</td>
<td>Kann Model nicht ändern. Änderung von Systemfeldern nicht erlaubt</td>
<td>403</td>
</tr>
<tr>
<td>364</td>
<td>Cannot change Model, reserved field title.</td>
<td>Kann Model nicht ändern. Reservierter Feldname</td>
<td>400</td>
</tr>
<tr>
<td>365</td>
<td>Cannot change Model, duplicate model title.</td>
<td>Kann Model nicht ändern. Doppelter Model name</td>
<td>400</td>
</tr>
<tr>
<td>366</td>
<td>Duplicate field name in model.</td>
<td>Doppelter Feldname im Model.</td>
<td>400</td>
</tr>
<tr>
<td>367</td>
<td>Field cannot be unique and localizable.</td>
<td>Feld kann nicht gleichzeitig einzigartig und lokalisierbar sein</td>
<td>400</td>
</tr>
<tr>
<td>368</td>
<td>Field of type boolean must be required.</td>
<td>Felder mit typ Boolean müssen erforderlich sein</td>
<td>400</td>
</tr>
<tr>
<td>369</td>
<td>Title field not a field in the model.</td>
<td>Titelfeld nicht als Feld im Model gefunden</td>
<td>400</td>
</tr>
<tr>
<td>370</td>
<td>Cannot delete resource. Is used.</td>
<td>Kann Resource nicht löschen, wird verwendet</td>
<td>403</td>
</tr>
<tr>
<td>371</td>
<td>Cannot change entry. Reference not found.</td>
<td>Kann Entry nicht ändern. Referenz nicht gefunden</td>
<td>400</td>
</tr>
<tr>
<td>372</td>
<td>Required field must have a default value set.</td>
<td>Erforderliche Felder müssen Standartwert gesetzt haben.</td>
<td>400</td>
</tr>
<tr>
<td>373</td>
<td>Other parallel request already added tag(s)</td>
<td>Anderer paralleler Request hat Tag schon bearbeitet</td>
<td>400</td>
</tr>
<tr>
<td>374</td>
<td>Cannot export datamanager. Required field in model has no default value.</td>
<td>Kann DataManager nicht exportieren. Erforderliches Feld in Model hat keinen Standartwert</td>
<td>400</td>
</tr>
<tr>
<td>375</td>
<td>A duplicate asset already exists in this AssetGroup. Set <code>ignoreDuplicates</code> flag to ignore. No assets were uploaded.</td>
<td>Ein gleiches Asset existiert bereits in dieser AssetGroup. Zum Ignorieren <code>ignoreDuplicates</code> flag setzten. Kein Asset wurde Hochgeladen</td>
<td>400</td>
</tr>
<tr>
<td>376</td>
<td>A duplicate asset filename already exists in this AssetGroup. Remove <code>preserveFilenames</code> flag to use a random filename. No assets were uploaded.</td>
<td>Ein Asset mit gleichem Dateinamen existiert bereits in dieser AssetGroup. <code>preserveFilenames</code> flag entfernen um zufälligen Dateinamen zu verwenden. Kein Asset wurde Hochgeladen</td>
<td>400</td>
</tr>
<tr>
<td>377</td>
<td>Could not delete entry, linked entry parallel deleted</td>
<td>Konnte Entry nicht löschen. Verknüpfter Entry parallel gelöscht</td>
<td>409</td>
</tr>
<tr>
<td>400</td>
<td>Missing Access Token</td>
<td>Fehlender Access Token</td>
<td>401</td>
</tr>
<tr>
<td>401</td>
<td>Invalid Access Token</td>
<td>Fehlerhafter Access Token</td>
<td>401</td>
</tr>
<tr>
<td>402</td>
<td>Outdated Access Token</td>
<td>Access Token abgelaufen</td>
<td>401</td>
</tr>
<tr>
<td>403</td>
<td>Invalid Password</td>
<td>Falsches Passwort</td>
<td>401</td>
</tr>
<tr>
<td>404</td>
<td>Account not found (unknown email address)</td>
<td>Account nicht gefunden (unbekannte E-Mail-Adresse)</td>
<td>404</td>
</tr>
<tr>
<td>410</td>
<td>Insufficient rights to access the requested resource</td>
<td>Keine Berechtigung die angeforderte Resource zu laden</td>
<td>401</td>
</tr>
<tr>
<td>411</td>
<td>Insufficient rights to access the requested resource with this method</td>
<td>Keine Berechtigung die angeforderte Resource mit dieser Methode zu laden</td>
<td>405</td>
</tr>
<tr>
<td>444</td>
<td>Denied because of stupidity</td>
<td><a href="http://www.nichtlustig.de/toondb/040816.html">http://www.nichtlustig.de/toondb/040816.html</a></td>
<td>403</td>
</tr>
<tr>
<td>451</td>
<td>Too many wrong login attempts, please wait</td>
<td>Zu viele Login-Versuche. Bitte warten</td>
<td>429</td>
</tr>
<tr>
<td>452</td>
<td>User blocked</td>
<td>Benutzer blockiert</td>
<td>403</td>
</tr>
<tr>
<td>453</td>
<td>Invalid invite</td>
<td>Fehlerhafte Einladung</td>
<td>403</td>
</tr>
<tr>
<td>454</td>
<td>Not allowed for this Account</td>
<td>Für diesen Account nicht erlaubt</td>
<td>403</td>
</tr>
<tr>
<td>455</td>
<td>Maximum amount reached</td>
<td>Maximale Anzahl erreicht</td>
<td>403</td>
</tr>
<tr>
<td>456</td>
<td>Wrong email in invite</td>
<td>Falsche E-Mail im Invite</td>
<td>403</td>
</tr>
<tr>
<td>460</td>
<td>Generic OAuth Error</td>
<td>Allgemeint OAuth Fehler</td>
<td>400</td>
</tr>
<tr>
<td>461</td>
<td>Facebook OAuth Request failed</td>
<td>Facebook OAuth fehlgeschlagen</td>
<td>400</td>
</tr>
<tr>
<td>462</td>
<td>Facebook API call failed to receive email address</td>
<td>Facebook Request konnte E-Mail-Adresse nicht laden</td>
<td>400</td>
</tr>
<tr>
<td>465</td>
<td>OAuth Error</td>
<td>OAuth Error</td>
<td>400</td>
</tr>
<tr>
<td>470</td>
<td>Target resource does not fulfill permission policy conditions</td>
<td>Resource erfüllt Bedingung für Berechtigung nicht</td>
<td>403</td>
</tr>
<tr>
<td>471</td>
<td>Property cannot be written due to permission policy restrictions</td>
<td>Parameter kann nicht geschrieben werden auf grund von eingeschränkter Richtlinie</td>
<td>403</td>
</tr>
<tr>
<td>472</td>
<td>Error while processing asset file</td>
<td>Fehler beim bearbeiten der Datei</td>
<td>400</td>
</tr>
<tr>
<td>473</td>
<td>Error running template</td>
<td>Fehler beim Ausführen der Template</td>
<td>400</td>
</tr>
<tr>
<td>500</td>
<td>Missing plan for this product</td>
<td>Fehlender Vertrag für dieses Produkt</td>
<td>403</td>
</tr>
<tr>
<td>510</td>
<td>Insufficient plan for this product</td>
<td>Vertrag umfasst dieses Produkt nicht</td>
<td>403</td>
</tr>
<tr>
<td>511</td>
<td>Insufficient plan for creation</td>
<td>Kann dies im aktuellen Vertrag nicht erstellen</td>
<td>403</td>
</tr>
<tr>
<td>003</td>
<td>Service currently unavailable</td>
<td>undefined</td>
<td>503</td>
</tr>
<tr>
<td>002</td>
<td>Bad Gateway</td>
<td>undefined</td>
<td>502</td>
</tr>
<tr>
<td>000</td>
<td>Internal Error</td>
<td>undefined</td>
<td>500</td>
</tr>
</tbody>
</table>
</section></div>
<div class='keyline-top-not py2'><section class='py2 clearfix'>
<h2 id='api-doc' class='mt0'>
API Doc
</h2>
</section></div>
<section class='p2 mb2 clearfix bg-white minishadow'>
<div class='clearfix'>
<h3 class='fl m0' id='newerror'>
newError
</h3>
</div>
<p>Helper Function to produce an error object containing message and HTTP status code.</p>
<div class='pre p1 fill-light mt0'>newError(code: (int | <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>?), detail: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>?, verbose: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>?): <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error">Error</a></div>
<div class='py1 quiet mt1 prose-big'>Parameters</div>
<div class='prose'>
<div class='space-bottom0'>
<div>
<span class='code bold'>code</span> <code class='quiet'>((int | <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>?)
= <code>'000'</code>)</code>
internal error code without system identifier (three digits).
Can also be an integer (when not 000…).
</div>
</div>
<div class='space-bottom0'>
<div>
<span class='code bold'>detail</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>?
= <code>''</code>)</code>
subject the error concerns.
</div>
</div>
<div class='space-bottom0'>
<div>
<span class='code bold'>verbose</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>?
= <code>''</code>)</code>
even more information about the error.
</div>
</div>
</div>
<div class='py1 quiet mt1 prose-big'>Returns</div>
<code><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error">Error</a></code>:
An JavaScript Error instance.
</section>
<section class='p2 mb2 clearfix bg-white minishadow'>
<div class='clearfix'>
<h3 class='fl m0' id='convertvalidationerror'>
convertValidationError
</h3>
</div>
<p>Converts an Error of tini validator into entrecode error format.</p>
<div class='pre p1 fill-light mt0'>convertValidationError(tv4Result: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object">object</a>): <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error">Error</a></div>
<div class='py1 quiet mt1 prose-big'>Parameters</div>
<div class='prose'>
<div class='space-bottom0'>
<div>
<span class='code bold'>tv4Result</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object">object</a>)</code>
Error from tini validator.
</div>
</div>
</div>
<div class='py1 quiet mt1 prose-big'>Returns</div>
<code><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error">Error</a></code>:
Mapped error in entrecode format.
</section>
<section class='p2 mb2 clearfix bg-white minishadow'>
<div class='clearfix'>
<h3 class='fl m0' id='getlocalised'>
getLocalised
</h3>
</div>
<p>Create a localized version of any given entrecode error.</p>
<div class='pre p1 fill-light mt0'>getLocalised(error: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error">Error</a>, locale: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>?): <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error">Error</a></div>
<div class='py1 quiet mt1 prose-big'>Parameters</div>
<div class='prose'>
<div class='space-bottom0'>
<div>
<span class='code bold'>error</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error">Error</a>)</code>
Error in entrecode error format.
</div>
</div>
<div class='space-bottom0'>
<div>
<span class='code bold'>locale</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String">string</a>?
= <code>config.locale</code>)</code>
Two character localization (currently only 'de' supported).
Leave blank for english.
</div>
</div>
</div>
<div class='py1 quiet mt1 prose-big'>Returns</div>
<code><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error">Error</a></code>:
localized entrecode error.
</section>
<div class='keyline-top-not py2'><section class='py2 clearfix'>
<h2 id='impressum--datenschutz' class='mt0'>
Impressum & Datenschutz
</h2>
<p><a href="https://entrecode.de/datenschutz">Impressum & Datenschutz (Privacy)</a></p>
</section></div>
</div>
</div>
<script src='assets/anchor.js'></script>
<script src='assets/split.js'></script>
<script src='assets/site.js'></script>
</body>
</html>