Class FulfillRequestedUploadRequestException.FileExtensionNotAllowed

    • Constructor Detail

      • FileExtensionNotAllowed

        public FileExtensionNotAllowed​(Set<String> allowedFileExtensions,
                                       String fileExtension,
                                       FormRecordMessageUploadRequest uploadRequest)
        Constructs a new exception indicating that the file extension is not allowed for the upload request.
        Parameters:
        allowedFileExtensions - The allowed extensions for the upload request.
        fileExtension - The actual extension of the file that is not allowed for the upload request.
        uploadRequest - The upload request for which the extension is not allowed.
    • Method Detail

      • allowedFileExtensions

        public Set<String> allowedFileExtensions()
        The allowed extensions for the upload request.
        Returns:
        The allowed extensions for the upload request.
      • fileExtension

        public String fileExtension()
        The actual extension of the file that is not allowed for the upload request.
        Returns:
        The actual extension of the file that is not allowed for the upload request.
      • uploadRequest

        public FormRecordMessageUploadRequest uploadRequest()
        The upload request for which the extension is not allowed.
        Returns:
        The upload request for which the extension is not allowed.
      • getErrorCode

        public String getErrorCode()
        Returns:
        the related error code string (as a technical error description)
      • getHttpStatusCode

        public int getHttpStatusCode()
        Returns:
        the HTTP status code related to this error
      • getErrorMessage

        public String getErrorMessage​(Locale locale)
        Parameters:
        locale - the local to be used for localization
        Returns:
        a (usually localized) detailed error description for the end user