var (
STACK_FILTER = []string{
"golang.conradwood.net/go-easyops/errors",
"runtime",
}
)
func ErrorString(err error) string
func ErrorStringWithStackTrace(err error) string
func ShortMessage(err error) string
type ErrorStackTrace interface {
Positions() []*StackPos
}
type MyError struct {
// contains filtered or unexported fields
}
func NewMyError(err error, st ErrorStackTrace) *MyError
func (me *MyError) Error() string
func (me *MyError) GRPCStatus() *status.Status
func (me *MyError) Stack() ErrorStackTrace
func (me *MyError) String() string
type StackError interface {
Stack() ErrorStackTrace
}
type StackPos struct {
Filename string
Function string
Line int
}
func (sp *StackPos) IsFiltered() bool
func (sp *StackPos) String() string
type WrappedError struct {
// contains filtered or unexported fields
}
func NewWrappedError(err error, st ErrorStackTrace) *WrappedError
func NewWrappedErrorWithString(err error, st ErrorStackTrace, s string) *WrappedError
func (we *WrappedError) Error() string
func (me *WrappedError) GRPCStatus() *status.Status
func (we *WrappedError) Stack() ErrorStackTrace
func (we *WrappedError) String() string