stack

package
v0.0.0-...-7b002ff Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(val bool)

Assert - implements a classic assert function

func CallStack

func CallStack() string

CallStack - returns a nice compressed call stack.

Types

type ErrorT

type ErrorT struct {
	Err string
	Stk string
}

ErrorT - modified error type with stack trace

func ErrorF

func ErrorF(f string, a ...interface{}) *ErrorT

ErrorF - returns an ErrorT with a fmt.Sprintf wrapper for format arguments

func ErrorS

func ErrorS(s string) *ErrorT

ErrorS - returns an ErrorT from a string

func ErrorStack

func ErrorStack(err error) *ErrorT

ErrorStack - returns the modified error

func (*ErrorT) All

func (e *ErrorT) All() string

All - method returns error string and stack as err.All()

func (*ErrorT) Error

func (e *ErrorT) Error() string

Error - method implements the Go error interface as err.Error()

func (*ErrorT) Stack

func (e *ErrorT) Stack() string

Stack - method returns the stack portion as err.Stack()

func (*ErrorT) String

func (e *ErrorT) String() string

err.String() returns the string portion

Jump to

Keyboard shortcuts

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