Enum ErrorCategory
-
- All Implemented Interfaces:
public enum ErrorCategoryThe categories that a THEOplayerException can belong to.
-
-
Field Summary
Fields Modifier and Type Field Description public final intid
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURATIONThis category clusters all errors related to the configuration.
LICENSEThis category clusters all errors related to the license.
SOURCEThis category clusters all errors related to the source.
MANIFESTThis category clusters all errors related to the manifest.
MEDIAThis category clusters all errors related to the media.
NETWORKThis category clusters all errors related to the network.
CONTENT_PROTECTIONThis category clusters all errors related to the content protection.
SUBTITLEThis category clusters all errors related to the subtitles.
VRThis category clusters all errors related to VR.
ADThis category clusters all errors related to ads.
FULLSCREENThis category clusters all errors related to fullscreen.
CACHEThis category clusters all errors related to caching.
THEOLIVEThis category clusters all errors related to THEOlive.
-
Method Summary
Modifier and Type Method Description static ErrorCategoryfromId(int id)The ErrorCategory from the identifier. static ErrorCategoryfromCode(@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 ErrorCategoryvalueOf(String name)Returns the enum constant of this type with the specified name. intgetId()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.
-
-
-
-