Enum Class MediaConstraintsException.EXCEPTION_VARIANT
java.lang.Object
java.lang.Enum<MediaConstraintsException.EXCEPTION_VARIANT>
de.espirit.firstspirit.store.access.mediastore.MediaConstraintsException.EXCEPTION_VARIANT
- All Implemented Interfaces:
Serializable
,Comparable<MediaConstraintsException.EXCEPTION_VARIANT>
,Constable
- Enclosing class:
- MediaConstraintsException
public static enum MediaConstraintsException.EXCEPTION_VARIANT
extends Enum<MediaConstraintsException.EXCEPTION_VARIANT>
Definition of the exception variant type.
- Since:
- 4.1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionExtension mime-type mismatchExtension not allowed.Extension not supported.No specific exception variant.Size exceeded. -
Method Summary
Modifier and TypeMethodDescriptionabstract @NotNull String
getDefaultMessage
(@NotNull Map<String, String> params) The default error message for a variant.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MEDIA_NO_TYPE
No specific exception variant.- Since:
- 4.1
-
MEDIA_SIZE_EXCEEDED
Size exceeded.- Since:
- 4.1
-
MEDIA_EXTENSION_REJECTED
Extension not allowed.- Since:
- 4.1
-
MEDIA_EXTENSION_MIME_MISMATCH
Extension mime-type mismatch- Since:
- 5.2.1703
-
MEDIA_EXTENSION_UNSUPPORTED
Extension not supported.- Since:
- 5.2.406
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefaultMessage
@NotNull public abstract @NotNull String getDefaultMessage(@NotNull @NotNull Map<String, String> params) The default error message for a variant.- Parameters:
params
- Parameters used in the error message.- Returns:
- the error message, never
null
. - Since:
- 5.2.710
-