Class FulfillRequestedUploadRequestException.MinFileCountLimitNotReached
- 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.MinFileCountLimitNotReached
-
- All Implemented Interfaces:
IErrorDetails
,Serializable
- Enclosing class:
- FulfillRequestedUploadRequestException
public static final class FulfillRequestedUploadRequestException.MinFileCountLimitNotReached extends FulfillRequestedUploadRequestException
Exception indicating that the limit on the minimum number of files was not met for the upload request.- 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 MinFileCountLimitNotReached(long minFileCount, long fileCount, FormRecordMessageUploadRequest uploadRequest)
Constructs a new exception indicating that the minimum file size limit was not met for the upload request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
fileCount()
The actual number of files that did not meet the minimum size limit.String
getErrorCode()
String
getErrorMessage(Locale locale)
int
getHttpStatusCode()
long
minFileCount()
The minimum file count limit that was exceeded by the files.FormRecordMessageUploadRequest
uploadRequest()
The upload request for which the file size limit was not met.-
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
-
MinFileCountLimitNotReached
public MinFileCountLimitNotReached(long minFileCount, long fileCount, FormRecordMessageUploadRequest uploadRequest)
Constructs a new exception indicating that the minimum file size limit was not met for the upload request.- Parameters:
minFileCount
- The minimum file count limit that was exceeded by the files.fileCount
- The actual number of files that did not meet the minimum file count limit.uploadRequest
- The upload request for which the file size limit was not met.
-
-
Method Detail
-
fileCount
public long fileCount()
The actual number of files that did not meet the minimum size limit.- Returns:
- The actual number of files that did not meet the minimum size limit.
-
minFileCount
public long minFileCount()
The minimum file count limit that was exceeded by the files.- Returns:
- The minimum file count limit that was exceeded by the files.
-
uploadRequest
public FormRecordMessageUploadRequest uploadRequest()
The upload request for which the file size limit was not met.- Returns:
- The upload request for which the file size limit was not met.
-
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
-
-