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 ¶
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.