Enum ErrorCategory
-
- All Implemented Interfaces:
public enum ErrorCategory
The categories that a THEOplayerException can belong to.
-
-
Field Summary
Fields Modifier and Type Field Description public final int
id
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURATION
This category clusters all errors related to the configuration.
LICENSE
This category clusters all errors related to the license.
SOURCE
This category clusters all errors related to the source.
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.
CONTENT_PROTECTION
This category clusters all errors related to the content protection.
SUBTITLE
This category clusters all errors related to the subtitles.
VR
This category clusters all errors related to VR.
AD
This category clusters all errors related to ads.
FULLSCREEN
This category clusters all errors related to fullscreen.
CACHE
This category clusters all errors related to caching.
THEOLIVE
This category clusters all errors related to THEOlive.
-
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()
Returns an array containing the constants of this enum type, in the order they're declared. static ErrorCategory
valueOf(String name)
Returns the enum constant of this type with the specified 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.- Returns:
The ErrorCategory from the identifier. (NonNull)
-
fromCode
@NonNull() static ErrorCategory fromCode(@NonNull() ErrorCode code)
The ErrorCategory that the ErrorCode belongs to.
- Parameters:
code
- The ErrorCode of the error category.- Returns:
The ErrorCategory from the error code. (NonNull)
-
values
static Array<ErrorCategory> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static ErrorCategory valueOf(String name)
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.)
- Returns:
the enum constant with the specified name
-
getId
int getId()
The numeric identifier of the error category.
- Returns:
The identifier.
-
-
-
-