hep: go-hep.org/x/hep/fwk/utils/errstack Index | Files

package errstack

import "go-hep.org/x/hep/fwk/utils/errstack"

Index

Package Files

errstack.go

Constants

const (
    // The size of the stack trace buffer for reading.  Stack traces will not be
    // longer than this.
    StackTraceSize = 4096
)

func New Uses

func New(err error) error

New returns a new Error. If err is already a errstack.Error, it's a no-op.

func Newf Uses

func Newf(format string, args ...interface{}) error

Newf creates a new Error.

type Error Uses

type Error struct {
    Err   error
    Stack []byte
}

Error wraps an error and attaches the stack trace at the moment of emission.

func (*Error) Error Uses

func (err *Error) Error() string

Error returns the error string

Package errstack imports 2 packages (graph) and is imported by 1 packages. Updated 2018-08-06. Refresh now. Tools for package owners.