public enum ErrorCategory extends Enum<ErrorCategory>
THEOplayerException
can belong to.Enum Constant and Description |
---|
AD
This category clusters all errors related to ads.
|
CONFIGURATION
This category clusters all errors related to the configuration.
|
CONTENT_PROTECTION
This category clusters all errors related to the content protection.
|
FULLSCREEN
This category clusters all errors related to fullscreen.
|
LICENSE
This category clusters all errors related to the license.
|
MANIFEST
This category clusters all errors related to the manifest.
|
MEDIA
This category clusters all errors related to the media.
|
NETWORK
This category clusters all errors related to the network.
|
SOURCE
This category clusters all errors related to the source.
|
SUBTITLE
This category clusters all errors related to the subtiles.
|
VR
This category clusters all errors related to VR.
|
Modifier and Type | Method and Description |
---|---|
static ErrorCategory |
fromCode(ErrorCode code)
The ErrorCategory that the
ErrorCode belongs to. |
static ErrorCategory |
fromId(int id)
The ErrorCategory from the identifier.
|
int |
getId()
The numeric identifier of the error category.
|
static ErrorCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCategory CONFIGURATION
public static final ErrorCategory LICENSE
public static final ErrorCategory SOURCE
public static final ErrorCategory MANIFEST
public static final ErrorCategory MEDIA
public static final ErrorCategory NETWORK
public static final ErrorCategory CONTENT_PROTECTION
public static final ErrorCategory SUBTITLE
public static final ErrorCategory VR
public static final ErrorCategory AD
public static final ErrorCategory FULLSCREEN
public static ErrorCategory[] values()
for (ErrorCategory c : ErrorCategory.values()) System.out.println(c);
public static ErrorCategory 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 int getId()
public static ErrorCategory fromId(int id)
id
- The numeric identifier of the error category.IllegalArgumentException
- Will be thrown when no error category can be determined for the identifier.public static ErrorCategory fromCode(ErrorCode code)
ErrorCode
belongs to.code
- The ErrorCode
of the error category.