Package io.sentry

Class SentryEvent

    • Constructor Detail

      • SentryEvent

        public SentryEvent​(@Nullable
                           @Nullable java.lang.Throwable throwable)
        SentryEvent ctor with the captured Throwable
        Parameters:
        throwable - the Throwable or null
      • SentryEvent

        public SentryEvent()
      • SentryEvent

        @TestOnly
        public SentryEvent​(@NotNull
                           @NotNull java.util.Date timestamp)
    • Method Detail

      • getTimestamp

        public java.util.Date getTimestamp()
      • getMessage

        @Nullable
        public @Nullable Message getMessage()
      • setMessage

        public void setMessage​(@Nullable
                               @Nullable Message message)
      • getLogger

        @Nullable
        public @Nullable java.lang.String getLogger()
      • setLogger

        public void setLogger​(@Nullable
                              @Nullable java.lang.String logger)
      • getThreads

        @Nullable
        public @Nullable java.util.List<SentryThread> getThreads()
      • setThreads

        public void setThreads​(@Nullable
                               @Nullable java.util.List<SentryThread> threads)
      • getExceptions

        @Nullable
        public @Nullable java.util.List<SentryException> getExceptions()
      • setExceptions

        public void setExceptions​(@Nullable
                                  @Nullable java.util.List<SentryException> exception)
      • getLevel

        @Nullable
        public @Nullable SentryLevel getLevel()
      • setLevel

        public void setLevel​(@Nullable
                             @Nullable SentryLevel level)
      • getTransaction

        @Nullable
        public @Nullable java.lang.String getTransaction()
      • setTransaction

        public void setTransaction​(@Nullable
                                   @Nullable java.lang.String transaction)
      • getFingerprints

        @Nullable
        public @Nullable java.util.List<java.lang.String> getFingerprints()
      • setFingerprints

        public void setFingerprints​(@Nullable
                                    @Nullable java.util.List<java.lang.String> fingerprint)
      • getUnknown

        @TestOnly
        @Nullable
        public @Nullable java.util.Map<java.lang.String,​java.lang.Object> getUnknown()
      • setModules

        public void setModules​(@Nullable
                               @Nullable java.util.Map<java.lang.String,​java.lang.String> modules)
      • setModule

        public void setModule​(@NotNull
                              @NotNull java.lang.String key,
                              @NotNull
                              @NotNull java.lang.String value)
      • removeModule

        public void removeModule​(@NotNull
                                 @NotNull java.lang.String key)
      • getModule

        @Nullable
        public @Nullable java.lang.String getModule​(@NotNull
                                                    @NotNull java.lang.String key)
      • getDebugMeta

        @Nullable
        public @Nullable DebugMeta getDebugMeta()
      • setDebugMeta

        public void setDebugMeta​(@Nullable
                                 @Nullable DebugMeta debugMeta)
      • isCrashed

        public boolean isCrashed()
        Returns true if any exception was unhandled by the user.
        Returns:
        true if its crashed or false otherwise
      • isErrored

        public boolean isErrored()
        Returns true if this event has any sort of exception
        Returns:
        true if errored or false otherwise