Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPanicHandler ¶
func DefaultPanicHandler()
DefaultPanicHandler could be used as panic handler on top method like
defer panics.DefaultPanicHandler()
...to handle every panic in a better way.
func HandlePanicOfPresent ¶
func HandlePanicOfPresent(framesToSkip int)
HandlePanicOfPresent could be used as panic handler on top method like
defer panics.HandlePanicOfPresent(2)
...to handle every panic in a better way.
Types ¶
type Panic ¶
type Panic struct {
// contains filtered or unexported fields
}
Panic represents a go panic which could have a cause and a call stack.
func (Panic) Cause ¶
func (i Panic) Cause() interface{}
Cause returns the cause of this panic. If the result is nil there is no cause.
Click to show internal directories.
Click to hide internal directories.