errorhandling

package
v1.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package errorhandling provides a error handling system to be used as root.Execute() error handler or on watches. It should not be used somewhere else.

Index

Constants

This section is empty.

Variables

View Source
var CommandName string

CommandName for the local message repository

Functions

func GetTypes

func GetTypes(err error) string

GetTypes get a list of error types separated by ":"

func Handle

func Handle(err error) error

Handle error to a more friendly format

func Info

func Info()

Info prints useful system information for debugging

func RunAfterError

func RunAfterError()

RunAfterError runs code after a global error, just before exiting

func SetAfterError

func SetAfterError(f func())

SetAfterError defines a function to run after global error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL