Package com.theoplayer.android.api.error
Class THEOplayerException
-
- All Implemented Interfaces:
-
java.io.Serializable
public class THEOplayerException extends Exception
A THEOplayer exception that gives an informative description of the error that occurred.
-
-
Constructor Summary
Constructors Constructor Description THEOplayerException(ErrorCode code, String message)
Constructs an exception that can be thrown by the player. THEOplayerException(ErrorCode code, String message, Throwable cause)
Constructs an exception that can be thrown by the player.
-
Method Summary
Modifier and Type Method Description ErrorCode
getCode()
The unique ErrorCode of the error. ErrorCategory
getCategory()
The ErrorCategory of the error. -
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCode
@NonNull() ErrorCode getCode()
The unique ErrorCode of the error.
- Returns:
The ErrorCode. (NonNull)
-
getCategory
@NonNull() ErrorCategory getCategory()
The ErrorCategory of the error.
- Returns:
The ErrorCategory. (NonNull)
-
-
-
-