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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.xima.fc.common.form_record.chat.FulfillRequestedUploadRequestException
FulfillRequestedUploadRequestException.CannotReadUploadFileData, FulfillRequestedUploadRequestException.EmptyUploadFile, FulfillRequestedUploadRequestException.FileExtensionNotAllowed, FulfillRequestedUploadRequestException.MaxFileCountLimitExceeded, FulfillRequestedUploadRequestException.MaxFileSizeLimitExceeded, FulfillRequestedUploadRequestException.MinFileCountLimitNotReached, FulfillRequestedUploadRequestException.MismatchingChat, FulfillRequestedUploadRequestException.MismatchingMessage, FulfillRequestedUploadRequestException.MissingContentType, FulfillRequestedUploadRequestException.MissingFileName, FulfillRequestedUploadRequestException.MissingUser, FulfillRequestedUploadRequestException.NoFilesProvided, FulfillRequestedUploadRequestException.NoFormDataAvailable, FulfillRequestedUploadRequestException.UnableToProcessUploadRequest, FulfillRequestedUploadRequestException.UploadElementConstraintsViolated, FulfillRequestedUploadRequestException.UploadRequestAlreadyFulfilled, FulfillRequestedUploadRequestException.UploadRequestNotFound, FulfillRequestedUploadRequestException.UserNotMemberOfChat
-
-
Constructor Summary
Constructors Constructor Description UploadElementConstraintsViolated(FormRecordMessageUploadRequest uploadRequest, FormDataUpdateUploadException cause)Constructs a new exception indicating that the upload element constraints were violated for the upload request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()StringgetErrorMessage(Locale locale)intgetHttpStatusCode()FormDataUpdateUploadExceptionuploadException()The upload exception with details regarding the upload element constraints that were violated.FormRecordMessageUploadRequestuploadRequest()The upload request for which upload element constraints were violated.-
Methods inherited from class de.xima.fc.common.form_record.chat.FulfillRequestedUploadRequestException
key
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-