Enum Class ErrorHandler.Result

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

public static enum ErrorHandler.Result extends Enum<ErrorHandler.Result>
The constants of this enumerated type describe the various types of actions that can be performed by an error handler in newsletters to a throwable
  • Enum Constant Details

    • DISCARD

      public static final ErrorHandler.Result DISCARD
      Ignores an error that was thrown by the socket
    • RESTORE

      public static final ErrorHandler.Result RESTORE
      Deletes the current session and creates a new one instantly
    • DISCONNECT

      public static final ErrorHandler.Result DISCONNECT
      Disconnects from the current session without deleting it
    • RECONNECT

      public static final ErrorHandler.Result RECONNECT
      Disconnects from the current session without deleting it and reconnects to it
    • LOG_OUT

      public static final ErrorHandler.Result LOG_OUT
      Deletes the current session
  • Constructor Details

    • Result

      private Result()
  • Method Details

    • values

      public static ErrorHandler.Result[] 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.Result 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