Class ExceptionStats

java.lang.Object
io.activej.jmx.stats.ExceptionStats
All Implemented Interfaces:
WithInitializer<ExceptionStats>, JmxStats<ExceptionStats>, JmxStatsWithReset

public final class ExceptionStats extends Object implements JmxStats<ExceptionStats>, JmxStatsWithReset, WithInitializer<ExceptionStats>
  • Method Details

    • create

      public static ExceptionStats create()
    • recordException

      public void recordException(Throwable e, @Nullable @Nullable Object context)
    • recordException

      public void recordException(Throwable e)
    • resetStats

      public void resetStats()
      Specified by:
      resetStats in interface JmxStatsWithReset
    • add

      public void add(ExceptionStats another)
      Specified by:
      add in interface JmxStats<ExceptionStats>
    • getTotal

      public int getTotal()
    • getLastType

      @Nullable public @Nullable String getLastType()
    • getLastTime

      @Nullable public @Nullable Instant getLastTime()
    • getLastException

      @Nullable public @Nullable Throwable getLastException()
    • getLastMessage

      @Nullable public @Nullable String getLastMessage()
    • getMultilineError

      public String getMultilineError()
    • getError

      @Nullable public @Nullable List<String> getError()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getContext

      @Nullable public @Nullable Object getContext()