Class FulfillRequestedUploadRequestException.MaxFileCountLimitExceeded
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.MaxFileCountLimitExceeded
- All Implemented Interfaces:
IErrorDetails, Serializable
- Enclosing class:
FulfillRequestedUploadRequestException
public static final class FulfillRequestedUploadRequestException.MaxFileCountLimitExceeded
extends FulfillRequestedUploadRequestException
Exception indicating that the limit on the maximum number of files was exceeded for the upload request.
- Since:
- 8.2.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class 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
ConstructorsConstructorDescriptionMaxFileCountLimitExceeded(long maxFileCount, long fileCount, FormRecordMessageUploadRequest uploadRequest) Constructs a new exception indicating that the maximum file count limit was exceeded for the upload request. -
Method Summary
Modifier and TypeMethodDescriptionlongThe actual number of files that exceeded the maximum file count limit.getErrorMessage(Locale locale) intlongThe maximum file count limit that was exceeded by the files.The upload request for which the file size limit was exceeded.Methods inherited from class FulfillRequestedUploadRequestException
keyMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MaxFileCountLimitExceeded
public MaxFileCountLimitExceeded(long maxFileCount, long fileCount, FormRecordMessageUploadRequest uploadRequest) Constructs a new exception indicating that the maximum file count limit was exceeded for the upload request.- Parameters:
maxFileCount- The maximum file count limit that was exceeded by the files.fileCount- The actual number of files that exceeded the maximum file count limit.uploadRequest- The upload request for which the file size limit was exceeded.
-
-
Method Details
-
fileCount
public long fileCount()The actual number of files that exceeded the maximum file count limit.- Returns:
- The actual number of files that exceeded the maximum file count limit.
-
maxFileCount
public long maxFileCount()The maximum file count limit that was exceeded by the files.- Returns:
- The maximum file count limit that was exceeded by the files.
-
uploadRequest
The upload request for which the file size limit was exceeded.- Returns:
- The upload request for which the file size limit was exceeded.
-
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
-