ThrowableKt


public final class ThrowableKt


Summary

Public methods

static final @NonNull Void
recordException(
    @NonNull Tracer receiver,
    @NonNull String category,
    @NonNull String name,
    @NonNull Throwable throwable
)

Records an exceptional event in a trace.

Public methods

recordException

public static final @NonNull Void recordException(
    @NonNull Tracer receiver,
    @NonNull String category,
    @NonNull String name,
    @NonNull Throwable throwable
)

Records an exceptional event in a trace.

Parameters
@NonNull String category

The String category. It's useful to categorize TraceEvents, so that they can be filtered if necessary using the appropriate trace configuration.

@NonNull String name

The name of the trace section.

@NonNull Throwable throwable

The exception thrown by a block of code.