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 (r *ErrorReporter) New(err error) *ErrorWithStacktrace
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 ¶
Click to show internal directories.
Click to hide internal directories.