Package org.gnome.soup
Enum Class SessionError
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<SessionError>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum SessionError
extends Enum<SessionError>
implements Enumeration
A
SoupSession
error.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionthe server's response was in an unsupported formatthe message is already in the session queue.the server's response could not be parsedfailed to redirect message because Location header contains an invalid URIfailed to redirect message because Location header was missing or empty in responsethe message has been redirected too many timesthe message has been restarted too many times -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the SessionError classint
getValue()
Get the numeric value of this enumstatic SessionError
of
(int value) Create a new SessionError for the provided valuestatic Quark
quark()
Registers error quark for SoupSession if needed.static SessionError
Returns the enum constant of this class with the specified name.static SessionError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PARSING
the server's response could not be parsed -
ENCODING
the server's response was in an unsupported format -
TOO_MANY_REDIRECTS
the message has been redirected too many times -
TOO_MANY_RESTARTS
the message has been restarted too many times -
REDIRECT_NO_LOCATION
failed to redirect message because Location header was missing or empty in response -
REDIRECT_BAD_URI
failed to redirect message because Location header contains an invalid URI -
MESSAGE_ALREADY_IN_QUEUE
the message is already in the session queue. Messages can only be reused after unqueued.
-
-
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
-
of
Create a new SessionError for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-
quark
Registers error quark for SoupSession if needed.- Returns:
- Error quark for SoupSession.
- Throws:
UnsupportedPlatformException
- when run on a platform other than linux
-