Skip to content

Commit

Permalink
Error code for duplicate document in same batch
Browse files Browse the repository at this point in the history
It can be useful to distinguish between this new
error code and the existing DUPLICATE_DOCUMENT_ID
error code when using the batch functionality of
the Digipost API. This new error code is a special
case of duplicate uuid for which the duplicate
is part of the same batch, and has the same document
hash, as the message which generated the error.
In such cases, it is safe for the sender to assume
the message has already been submitted as part of
the batch. This requires that the document hash
property is specified correctly.
  • Loading branch information
hermanwh committed Mar 22, 2024
1 parent f43cf1f commit 0b84eda
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public enum ErrorCode {
CONTENT_OF_PRINT_MESSAGE_MUST_BE_PDF(CLIENT_DATA),
DUPLICATE_MESSAGE(CLIENT_DATA),
DUPLICATE_DOCUMENT_ID(CLIENT_DATA),
DUPLICATE_DOCUMENT_ID_FOR_BATCH(CLIENT_DATA),
FILE_TOO_LARGE(CLIENT_DATA),
ILLEGAL_HTML_CONTENT(CLIENT_DATA),
BAD_CONTENT(CLIENT_DATA),
Expand Down

0 comments on commit 0b84eda

Please sign in to comment.