Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorMessageFor ¶
ErrorMessageFor creates an error message for given error.
Types ¶
type CauseEnabled ¶
type CauseEnabled interface {
Cause() interface{}
}
CauseEnabled represents an object that could have a Cause.
type Element ¶ added in v0.1.6
type Element struct { File string ShortFile string Line int Function string Package string Pc uintptr }
Element represents an element from the whole stack trace.
type ErrorEnabled ¶
type ErrorEnabled interface {
Error() string
}
ErrorEnabled represents an object that has an Error message.
type HasStack ¶ added in v0.1.6
type HasStack interface {
Stack() Stack
}
HasStack represents an object that has a Stack.
type MessageEnabled ¶
type MessageEnabled interface {
Message() string
}
MessageEnabled represents an object that has a Message.
type Stack ¶
type Stack []Element
Stack represents the whole stack trace with a couple of Elements.
func CaptureStack ¶
CaptureStack creates a new stack capture of the current stack. It is possible to cut off the returned stack with framesToSkip.
Click to show internal directories.
Click to hide internal directories.