@minecraft/diagnostics
    Preparing search index...

    Class SentryBeta

    A class that allows hooking up reporting to Sentry. See https://sentry.io/ for more information.

    Index

    Methods

    • Beta

      Parameters

      • level: SentryEventLevel
      • message: string

        The message to add to the breadcrumb.

      • Optionalcategory: string

        The category of the breadcrumb.

      Returns void

      Adds a breadcrumb to the next Sentry error reported. This can be useful for understanding a "trail" of events leading up to an error. See Sentry documentation for more details: https://docs.sentry.io/product/issues/issue-details/breadcrumbs/

      This function can be called in early-execution mode.

      This function can throw errors.

      SentryUninitializedError

    • Beta

      Parameters

      Returns void

      Captures an exception event and send it to Sentry. Note that you can pass not only Error objects, but also other types of thrown objects - in that case, an attempt will be made to serialize the object for you, and stack traces are likely to be missing. See Sentry documentation for more details: https://docs.sentry.io/platforms/javascript/apis/#capturing-events

      This function can be called in early-execution mode.

      This function can throw errors.

      SentryUninitializedError

    • Beta

      Parameters

      Returns void

      Initializes Sentry for use. This must be successfully called before any other Sentry functions are called.

      This function can be called in early-execution mode.

      This function can throw errors.

      minecraftcommon.InvalidArgumentError

      SentryAlreadyInitializedError