Class WakeLockErrorEvent


public class WakeLockErrorEvent extends ClientEvent<WakeLockListener>
Event fired when a wake lock operation fails.
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • WakeLockErrorEvent

      public WakeLockErrorEvent(String message, String errorType)
      Constructs a WakeLockErrorEvent.
      Parameters:
      message - The error message.
      errorType - The type of error.
  • Method Details

    • getMessage

      public String getMessage()
      Returns the error message.
      Returns:
      The error message.
    • getErrorType

      public String getErrorType()
      Returns the error type.

      Common error types:

      • NotAllowedError: Permission was denied or page is not visible
      Returns:
      The error type.
    • dispatchTo

      public void dispatchTo(WakeLockListener listener)
      Description copied from class: Event
      Dispatches this event to the specified listener.

      Subclasses implement this method to call the appropriate handler method on the listener interface.

      Specified by:
      dispatchTo in class Event<WakeLockListener>
      Parameters:
      listener - the listener to dispatch this event to
    • toString

      public String toString()
      Overrides:
      toString in class Object