Class FulfillRequestedUploadRequestException.UploadElementConstraintsViolated

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.UploadElementConstraintsViolated
All Implemented Interfaces:
IErrorDetails, Serializable
Enclosing class:
FulfillRequestedUploadRequestException

public static final class FulfillRequestedUploadRequestException.UploadElementConstraintsViolated extends FulfillRequestedUploadRequestException
Exception indicating that the upload element constraints were violated for the upload request. For example, the upload element configuration in the designer might enforce a file size limit, or the element might be repeated and the provided number of files exceed the configured maximum number of repetitions.
Since:
8.2.0
See Also:
  • Constructor Details

    • UploadElementConstraintsViolated

      public UploadElementConstraintsViolated(FormRecordMessageUploadRequest uploadRequest, FormDataUpdateUploadException cause)
      Constructs a new exception indicating that the upload element constraints were violated for the upload request. For example, the upload element configuration in the designer might enforce a file size limit, or the element might be repeated and the provided number of files exceed the configured maximum number of repetitions.
      Parameters:
      uploadRequest - The upload request for which the upload element constraints were violated.
      cause - The exception that caused the upload element constraints to be violated.
  • Method Details

    • uploadException

      public FormDataUpdateUploadException uploadException()
      The upload exception with details regarding the upload element constraints that were violated.
      Returns:
      The upload exception with details regarding the upload element constraints that were violated.
    • uploadRequest

      public FormRecordMessageUploadRequest uploadRequest()
      The upload request for which upload element constraints were violated.
      Returns:
      The upload request for which upload element constraints were violated.
    • 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