Package com.vaadin.flow.component.upload
Class UploadFileListI18N.Uploading.UploadError
java.lang.Object
com.vaadin.flow.component.upload.UploadFileListI18N.Uploading.UploadError
- All Implemented Interfaces:
Serializable
- Enclosing class:
UploadFileListI18N.Uploading
Communication error translations.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the file too large error message shown when the server returns HTTP 413 (Payload Too Large).Gets the forbidden error message.Gets the server unavailable error message.Gets the unexpected server error message.setFileTooLarge(String fileTooLarge) Sets the file too large error message shown when the server returns HTTP 413 (Payload Too Large).setForbidden(String forbidden) Sets the forbidden error message.setServerUnavailable(String serverUnavailable) Sets the server unavailable error message.setUnexpectedServerError(String unexpectedServerError) Sets the unexpected server error message.
-
Constructor Details
-
UploadError
public UploadError()
-
-
Method Details
-
getUnexpectedServerError
Gets the unexpected server error message.- Returns:
- translation string
-
setUnexpectedServerError
public UploadFileListI18N.Uploading.UploadError setUnexpectedServerError(String unexpectedServerError) Sets the unexpected server error message.- Parameters:
unexpectedServerError- translation string- Returns:
- this instance for chaining
-
getForbidden
Gets the forbidden error message.- Returns:
- translation string
-
setForbidden
Sets the forbidden error message.- Parameters:
forbidden- translation string- Returns:
- this instance for chaining
-
getFileTooLarge
Gets the file too large error message shown when the server returns HTTP 413 (Payload Too Large).- Returns:
- translation string
-
setFileTooLarge
Sets the file too large error message shown when the server returns HTTP 413 (Payload Too Large).- Parameters:
fileTooLarge- translation string- Returns:
- this instance for chaining