Package org.opencms.ugc.shared
Enum CmsUgcConstants.ErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<CmsUgcConstants.ErrorCode>
,java.lang.constant.Constable
- Enclosing class:
- CmsUgcConstants
Enum representing the different types of errors. The string values of these enum values are intended for use in JavaScript error handling functions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionConfiguration error.Invalid action error.Error when user tries to upload a file with a file extension which is not among the configured file extensions.Error when the maximum number of contents in the content directory is reached.Error when the maximum number of entries in the form session request queue is reached.Error when uploaded files exceed the configured maximum upload size.Miscellaneous other errors.Error when trying to upload a file and uploads are not allowed.Validation error. -
Method Summary
Modifier and TypeMethodDescriptionstatic CmsUgcConstants.ErrorCode
Returns the enum constant of this type with the specified name.static CmsUgcConstants.ErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
errInvalidAction
Invalid action error. -
errConfiguration
Configuration error. -
errNoUploadAllowed
Error when trying to upload a file and uploads are not allowed. -
errMaxContentsExceeded
Error when the maximum number of contents in the content directory is reached. -
errMaxQueueLengthExceeded
Error when the maximum number of entries in the form session request queue is reached. -
errInvalidExtension
Error when user tries to upload a file with a file extension which is not among the configured file extensions. -
errValidation
Validation error. -
errMisc
Miscellaneous other errors. -
errMaxUploadSizeExceeded
Error when uploaded files exceed the configured maximum upload size.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-