public enum MediaUploadErrorReason extends Enum<MediaUploadErrorReason>
Java class for MediaUploadError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="MediaUploadError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="UNKNOWN"/>
<enumeration value="FILE_TOO_BIG"/>
<enumeration value="INVALID_IMAGE"/>
<enumeration value="ANIMATED_NOT_ALLOWED"/>
<enumeration value="SERVER_ERROR"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ANIMATED_NOT_ALLOWED
Animated is not allowed.
|
FILE_TOO_BIG
File is too big.
|
INVALID_IMAGE
Image data is unrecognizable.
|
SERVER_ERROR
Server error when uploading media bytes.
|
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static MediaUploadErrorReason |
fromValue(String v) |
String |
value() |
static MediaUploadErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaUploadErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaUploadErrorReason UNKNOWN
public static final MediaUploadErrorReason FILE_TOO_BIG
public static final MediaUploadErrorReason INVALID_IMAGE
public static final MediaUploadErrorReason ANIMATED_NOT_ALLOWED
public static final MediaUploadErrorReason SERVER_ERROR
public static MediaUploadErrorReason[] values()
for (MediaUploadErrorReason c : MediaUploadErrorReason.values()) System.out.println(c);
public static MediaUploadErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static MediaUploadErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.