Enum Class DiscardReason

java.lang.Object
java.lang.Enum<DiscardReason>
io.sentry.clientreport.DiscardReason
All Implemented Interfaces:
Serializable, Comparable<DiscardReason>, Constable

@Internal public enum DiscardReason extends Enum<DiscardReason>
  • Enum Constant Details

    • QUEUE_OVERFLOW

      public static final DiscardReason QUEUE_OVERFLOW
    • CACHE_OVERFLOW

      public static final DiscardReason CACHE_OVERFLOW
    • RATELIMIT_BACKOFF

      public static final DiscardReason RATELIMIT_BACKOFF
    • NETWORK_ERROR

      public static final DiscardReason NETWORK_ERROR
    • SAMPLE_RATE

      public static final DiscardReason SAMPLE_RATE
    • BEFORE_SEND

      public static final DiscardReason BEFORE_SEND
    • EVENT_PROCESSOR

      public static final DiscardReason EVENT_PROCESSOR
  • Method Details

    • values

      public static DiscardReason[] 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 DiscardReason 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
    • getReason

      public String getReason()