Package com.jwplayer.pub.api.events
Class ErrorEvent
- java.lang.Object
-
- com.jwplayer.pub.api.events.Event
-
- com.jwplayer.pub.api.events.ErrorEvent
-
- Direct Known Subclasses:
WarningEvent
public class ErrorEvent extends Event
Payload that accompanies the onError() callback.
-
-
Constructor Summary
Constructors Constructor Description ErrorEvent(JWPlayer player, java.lang.String message, java.lang.Exception exception, int errorCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorCode()
java.lang.Exception
getException()
java.lang.String
getMessage()
-
-
-
Constructor Detail
-
ErrorEvent
public ErrorEvent(@NonNull JWPlayer player, @NonNull java.lang.String message, @Nullable java.lang.Exception exception, int errorCode)
-
-
Method Detail
-
getMessage
@NonNull public java.lang.String getMessage()
- Returns:
- The error message that has been detected.
-
getException
@Nullable public java.lang.Exception getException()
- Returns:
- The Exception thrown along with this error.
-
getErrorCode
public int getErrorCode()
- Returns:
- The error code of this error.
-
-