- All Implemented Interfaces:
Serializable
,Comparable<ErrorHandler.Location>
,Constable
- Enclosing interface:
ErrorHandler
The constants of this enumerated type describe the various locations where an error can occur
in the socket
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCryptographic errorCalled when syncing messages after first QR scanCalled when an error is thrown while pulling initial app dataCalled when an error is thrown while logging inCalled when the media connection cannot be renewedCalled when an error occurs when serializing or deserializing a Whatsapp messageCalled when an error is thrown while pulling app dataCalled when an error is thrown while pushing app dataCalled when an error arrives from the streamUnknown -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorHandler.Location
Returns the enum constant of this class with the specified name.static ErrorHandler.Location[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknown -
LOGIN
Called when an error is thrown while logging in -
CRYPTOGRAPHY
Cryptographic error -
MEDIA_CONNECTION
Called when the media connection cannot be renewed -
STREAM
Called when an error arrives from the stream -
PULL_APP_STATE
Called when an error is thrown while pulling app data -
PUSH_APP_STATE
Called when an error is thrown while pushing app data -
INITIAL_APP_STATE_SYNC
Called when an error is thrown while pulling initial app data -
MESSAGE
Called when an error occurs when serializing or deserializing a Whatsapp message -
HISTORY_SYNC
Called when syncing messages after first QR scan
-
-
Constructor Details
-
Location
private Location()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-