Class EventSocketDeleteSubscriptionFailureEvent

java.lang.Object
com.github.twitch4j.eventsub.socket.events.EventSocketDeleteSubscriptionFailureEvent

public final class EventSocketDeleteSubscriptionFailureEvent extends Object
Called when an EventSocket fails to delete a subscription via the Helix API.
  • Constructor Details

    • EventSocketDeleteSubscriptionFailureEvent

      public EventSocketDeleteSubscriptionFailureEvent(EventSubSubscription subscription, TwitchEventSocket connection, Throwable error)
      Creates a new EventSocketDeleteSubscriptionFailureEvent instance.
      Parameters:
      subscription - The subscription that was attempted to be deleted.
      connection - The EventSocket attempting to delete the subscription.
      error - The exception associated with the deletion failure.
  • Method Details

    • getSubscription

      public EventSubSubscription getSubscription()
      The subscription that was attempted to be deleted.
    • getConnection

      public TwitchEventSocket getConnection()
      The EventSocket attempting to delete the subscription.
    • getError

      public Throwable getError()
      The exception associated with the deletion failure.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object