Skip to content

Commit

Permalink
task: add import error message handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominick Leppich committed Sep 10, 2024
1 parent b8d8e3f commit 5658841
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ private Optional<String> getLocalizedMessage(VocabularyException.ErrorCode error
case RecordValidationMissingRequiredFields:
orderedParameters = List.of("missingFieldNames");
break;
case RecordImportHeaderIssues:
orderedParameters = List.of("undefinedFields", "missingFields");
break;
case RecordImportFieldCountIssue:
orderedParameters = List.of("expectedSize", "realSize");
break;
case RecordImportUnsupportedExcelCellType:
orderedParameters = List.of("cellType");
break;
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/messages_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3718,7 +3718,10 @@ vocabularyManager_exception_IllegalAttributeProvided=Vocabulary manager error {0
vocabularyManager_exception_InsertingNonExistingItem=Vocabulary manager error {0} zzz
vocabularyManager_exception_Mapping=Vocabulary manager error {0} zzz
vocabularyManager_exception_MissingRequiredAttribute=Vocabulary manager error {0} zzz
vocabularyManager_exception_RecordImport=Vocabulary manager error {0} zzz
vocabularyManager_exception_RecordImport=Es sind Fehler beim Importieren von Vokabulareintr\u00E4gen aufgetreten
vocabularyManager_exception_RecordImportHeaderIssues=Die Spalten passen nicht zu den Feldern, die im Vokabularschema definiert sind: Unbekannte Spalten "{0}", fehlende Spalten "{1}"
vocabularyManager_exception_RecordImportParsingIssues=Fehler beim Lesen der Vokabulareintr\u00E4ge
vocabularyManager_exception_RecordImportFieldCountIssue=Die Anzahl der Werte stimmt nicht mit der Spaltenanzahl \u00FCberein: Spaltenanzahl "{0}", Werte "{1}"
vocabularyManager_exception_RecordImportUnsupportedExcelCellType=Es ist ein Fehler beim Excel Import aufgetreten\: Unbekannter Zellentyp "{0}"
vocabularyManager_exception_RecordValidation=Vocabulary manager error {0} zzz
vocabularyManager_exception_RecordValidationChildrenReferencesNotAllowed=Vocabulary manager error {0} zzz
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3718,7 +3718,10 @@ vocabularyManager_exception_IllegalAttributeProvided=Vocabulary manager error {0
vocabularyManager_exception_InsertingNonExistingItem=Vocabulary manager error {0} zzz
vocabularyManager_exception_Mapping=Vocabulary manager error {0} zzz
vocabularyManager_exception_MissingRequiredAttribute=Vocabulary manager error {0} zzz
vocabularyManager_exception_RecordImport=Vocabulary manager error {0} zzz
vocabularyManager_exception_RecordImport=Error(s) during record import
vocabularyManager_exception_RecordImportHeaderIssues=The given fields do not match the fields defined in the vocabulary schema: Undefined fields "{0}", missing fields "{1}"
vocabularyManager_exception_RecordImportParsingIssues=Error(s) during record parsing
vocabularyManager_exception_RecordImportFieldCountIssue=Malformed tabular data, number of fields does not match the header: Header size "{0}", data row size "{1}"
vocabularyManager_exception_RecordImportUnsupportedExcelCellType=Error during Excel import\: Unknown cell type "{0}"
vocabularyManager_exception_RecordValidation=Vocabulary manager error {0} zzz
vocabularyManager_exception_RecordValidationChildrenReferencesNotAllowed=Vocabulary manager error {0} zzz
Expand Down

0 comments on commit 5658841

Please sign in to comment.