Class FulfillRequestedUploadRequestException.FileExtensionNotAllowed

java.lang.Object
java.lang.Throwable
java.lang.Exception
de.xima.fc.common.form_record.chat.FulfillRequestedUploadRequestException
de.xima.fc.common.form_record.chat.FulfillRequestedUploadRequestException.FileExtensionNotAllowed
All Implemented Interfaces:
IErrorDetails, Serializable
Enclosing class:
FulfillRequestedUploadRequestException

public static final class FulfillRequestedUploadRequestException.FileExtensionNotAllowed extends FulfillRequestedUploadRequestException
Exception indicating that the file extension is not allowed for the upload request.
Since:
8.2.0
See Also:
  • Constructor Details

    • 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 Details

    • 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