stacktrace

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const NoStatusCode = math.MinInt

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorReporter

type ErrorReporter struct {
	EnableStacktraces bool
}

func New

func New(enableStacktraces bool) *ErrorReporter

func (*ErrorReporter) New

func (*ErrorReporter) NewWithErrorCode added in v0.0.5

func (r *ErrorReporter) NewWithErrorCode(errorCode int, err error) *ErrorWithStacktrace

type ErrorWithStacktrace

type ErrorWithStacktrace struct {
	ErrorCode int
	Stack     *[]*StackElement
	// contains filtered or unexported fields
}

func (*ErrorWithStacktrace) Format

func (s *ErrorWithStacktrace) Format() string

func (*ErrorWithStacktrace) Stacktrace

func (s *ErrorWithStacktrace) Stacktrace() *[]*StackElement

type StackElement

type StackElement struct {
	File         string
	FunctionName string
	Line         int
}

Jump to

Keyboard shortcuts

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