Handle server side error code

This commit is contained in:
Laurent Clouet
2020-10-27 14:42:59 +01:00
parent 986fef0e79
commit e1e680ace3
2 changed files with 6 additions and 0 deletions

View File

@@ -1030,6 +1030,9 @@ import lombok.Data;
break retryLoop;
case JOB_VALIDATION_ERROR_IMAGE_WRONG_DIMENSION:
confirmJobReturnCode = Error.Type.IMAGE_WRONG_DIMENSION;
break retryLoop;
case JOB_VALIDATION_ERROR_MISSING_PARAMETER:
// no point to retry the request
confirmJobReturnCode = Error.Type.UNKNOWN;