stacktrace

package
v0.0.0-...-13a6da0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeStackTrace

func EncodeStackTrace(s *StackTrace) (string, error)

EncodeStackTrace produces a decodable string representation of the stack trace. This never fails.

func PrintStackTrace

func PrintStackTrace(s *StackTrace) string

PrintStackTrace produces a human-readable partial representation of the stack trace.

Types

type ReportableObject

type ReportableObject = raven.Interface

ReportableObject is an interface suitable for the extra detail objects provided to SendReport().

type StackTrace

type StackTrace = raven.Stacktrace

StackTrace is an object suitable for inclusion in errors that can ultimately be reported with ReportInternalError() or similar.

func DecodeStackTrace

func DecodeStackTrace(s string) (*StackTrace, error)

DecodeStackTrace produces a stack trace from the encoded string. If decoding fails, a boolean false is returned. In that case the caller is invited to include the string in the final reportable object, as a fallback (instead of discarding the stack trace entirely).

func NewStackTrace

func NewStackTrace(depth int) *StackTrace

NewStackTrace generates a stacktrace suitable for inclusion in error reports.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL