Versions in this module Expand all Collapse all v0 v0.0.2 Aug 31, 2021 Changes in this version + type ErrorParser func(err error, code int, skipTrace int) *StandardException + type Exception interface + Code func() int + File func() string + GetError func() error + Line func() int + Traces func() []Trace + type HttpException interface + Headers func() map[string]string + StatusCode func() int + type StandardException struct + func GoErrorParser(err error, code int, skipTrace int) *StandardException + func NewException(message string, code int) *StandardException + func NewExceptionFromError(err error, code int) *StandardException + func (e *StandardException) Code() int + func (e *StandardException) Error() string + func (e *StandardException) File() string + func (e *StandardException) GetError() error + func (e *StandardException) Line() int + func (e *StandardException) Traces() []Trace + type StandardHttpException struct + func NewHttpException(message string, statusCode int, code int, headers map[string]string) *StandardHttpException + func NewHttpExceptionFromError(err error, statusCode int, code int, headers map[string]string) *StandardHttpException + func (s *StandardHttpException) Headers() map[string]string + func (s *StandardHttpException) StatusCode() int + type StandardTrace struct + func (t *StandardTrace) File() string + func (t *StandardTrace) Line() int + func (t *StandardTrace) Name() string + type Trace interface + File func() string + Line func() int + Name func() string + func GoErrorTraceParser(err error, skip int) []Trace + type TraceParser func(err error, skip int) []Trace v0.0.1 Mar 4, 2021