Enum Class ErrorHandler.Location

java.lang.Object
java.lang.Enum<ErrorHandler.Location>
it.auties.whatsapp.api.ErrorHandler.Location
All Implemented Interfaces:
Serializable, Comparable<ErrorHandler.Location>, Constable
Enclosing interface:
ErrorHandler

public static enum ErrorHandler.Location extends Enum<ErrorHandler.Location>
The constants of this enumerated type describe the various locations where an error can occur in the socket
  • Enum Constant Details

    • UNKNOWN

      public static final ErrorHandler.Location UNKNOWN
      Unknown
    • LOGIN

      public static final ErrorHandler.Location LOGIN
      Called when an error is thrown while logging in
    • CRYPTOGRAPHY

      public static final ErrorHandler.Location CRYPTOGRAPHY
      Cryptographic error
    • MEDIA_CONNECTION

      public static final ErrorHandler.Location MEDIA_CONNECTION
      Called when the media connection cannot be renewed
    • STREAM

      public static final ErrorHandler.Location STREAM
      Called when an error arrives from the stream
    • PULL_APP_STATE

      public static final ErrorHandler.Location PULL_APP_STATE
      Called when an error is thrown while pulling app data
    • PUSH_APP_STATE

      public static final ErrorHandler.Location PUSH_APP_STATE
      Called when an error is thrown while pushing app data
    • INITIAL_APP_STATE_SYNC

      public static final ErrorHandler.Location INITIAL_APP_STATE_SYNC
      Called when an error is thrown while pulling initial app data
    • MESSAGE

      public static final ErrorHandler.Location MESSAGE
      Called when an error occurs when serializing or deserializing a Whatsapp message
    • HISTORY_SYNC

      public static final ErrorHandler.Location HISTORY_SYNC
      Called when syncing messages after first QR scan
  • Constructor Details

    • Location

      private Location()
  • Method Details

    • values

      public static ErrorHandler.Location[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ErrorHandler.Location valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null