Class ErrorEvent

java.lang.Object
com.slack.api.model.event.ErrorEvent
All Implemented Interfaces:
Event, java.io.Serializable

public class ErrorEvent
extends java.lang.Object
implements Event
If there was a problem connecting an error will be returned, including a descriptive error message:
 {
     "type": "error",
     "error": {
         "code": 1,
         "msg": "Socket URL has expired"
     }
 }
 

https://api.slack.com/rtm

See Also:
Serialized Form
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  ErrorEvent.Error  
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String TYPE_NAME  
  • Constructor Summary

    Constructors 
    Constructor Description
    ErrorEvent()  
  • Method Summary

    Modifier and Type Method Description
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    ErrorEvent.Error getError()  
    java.lang.String getType()  
    int hashCode()  
    void setError​(ErrorEvent.Error error)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.slack.api.model.event.Event

    getSubtype
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      public java.lang.String getType()
      Specified by:
      getType in interface Event
    • getError

      public ErrorEvent.Error getError()
    • setError

      public void setError​(ErrorEvent.Error error)
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

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

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object