Enum Class SessionError

java.lang.Object
java.lang.Enum<SessionError>
org.gnome.soup.SessionError
All Implemented Interfaces:
Serializable, Comparable<SessionError>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum SessionError extends Enum<SessionError> implements Enumeration
A Session error.
  • Enum Constant Details

    • PARSING

      public static final SessionError PARSING
      the server's response could not be parsed
    • ENCODING

      public static final SessionError ENCODING
      the server's response was in an unsupported format
    • TOO_MANY_REDIRECTS

      public static final SessionError TOO_MANY_REDIRECTS
      the message has been redirected too many times
    • TOO_MANY_RESTARTS

      public static final SessionError TOO_MANY_RESTARTS
      the message has been restarted too many times
    • REDIRECT_NO_LOCATION

      public static final SessionError REDIRECT_NO_LOCATION
      failed to redirect message because Location header was missing or empty in response
    • REDIRECT_BAD_URI

      public static final SessionError REDIRECT_BAD_URI
      failed to redirect message because Location header contains an invalid URI
    • MESSAGE_ALREADY_IN_QUEUE

      public static final SessionError MESSAGE_ALREADY_IN_QUEUE
      the message is already in the session queue. Messages can only be reused after unqueued.
  • Method Details

    • values

      public static SessionError[] 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 SessionError 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
    • of

      public static SessionError of(int value)
      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 interface Enumeration
      Returns:
      the enum value
    • of

      public static SessionError of(MemorySegment address)
      Create a new SessionError for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the SessionError class.
      Returns:
      the GType
    • quark

      public static Quark quark()
      Registers error quark for SoupSession if needed.
      Returns:
      Error quark for SoupSession.