exception

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(message string)

Log an error into the main error.log file

func ProcessError

func ProcessError(err error)

Generic method to handle errors. You can customize this method to implement your error handling. Es.: You can implement "Sentry" or other error tracking system

func SentryReport

func SentryReport(report error)

Send an error to Sentry. This requires sentry endpoint configured into the config.yml file

Types

type ErrorConfiguration

type ErrorConfiguration struct {
	Exception struct {
		Sentry string `yaml:"sentry"`
	} `yaml:"exception"`
}

Jump to

Keyboard shortcuts

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