Class 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)  
    • 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.