-
- All Implemented Interfaces:
-
java.io.Serializable
,java.lang.Comparable
public enum ErrorCategory
The categories that a THEOplayerException can belong to.
-
-
Field Summary
Fields Modifier and Type Field Description private final int
id
-
Enum Constant Summary
Enum Constants Enum Constant Description CACHE
This category clusters all errors related to caching.
FULLSCREEN
This category clusters all errors related to fullscreen.
AD
This category clusters all errors related to ads.
VR
This category clusters all errors related to VR.
SUBTITLE
This category clusters all errors related to the subtitles.
CONTENT_PROTECTION
This category clusters all errors related to the content protection.
NETWORK
This category clusters all errors related to the network.
MEDIA
This category clusters all errors related to the media.
MANIFEST
This category clusters all errors related to the manifest.
SOURCE
This category clusters all errors related to the source.
LICENSE
This category clusters all errors related to the license.
CONFIGURATION
This category clusters all errors related to the configuration.
-
Method Summary
Modifier and Type Method Description static ErrorCategory
fromId(int id)
The ErrorCategory from the identifier. static ErrorCategory
fromCode(@NonNull() ErrorCode code)
The ErrorCategory that the ErrorCode belongs to. static Array<ErrorCategory>
values()
static ErrorCategory
valueOf(String name)
int
getId()
The numeric identifier of the error category. -
-
Method Detail
-
fromId
@NonNull() static ErrorCategory fromId(int id)
The ErrorCategory from the identifier.
- Parameters:
id
- The numeric identifier of the error category.
-
fromCode
@NonNull() static ErrorCategory fromCode(@NonNull() ErrorCode code)
The ErrorCategory that the ErrorCode belongs to.
- Parameters:
code
- The ErrorCode of the error category.
-
values
static Array<ErrorCategory> values()
-
valueOf
static ErrorCategory valueOf(String name)
-
getId
int getId()
The numeric identifier of the error category.
-
-
-
-