errors

package
v0.0.0-...-48f6ed3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertGLError

func AssertGLError(importance ErrorImportance, comment string)

AssertGLError panics or logs depending on debug mode and given importance of error

func GetDebugMode

func GetDebugMode() bool

GetDebugMode returns current debug status

func LogError

func LogError(importance ErrorImportance, text string)

LogError logs a error in the graphics log

func SetDebugMode

func SetDebugMode(enabled bool)

SetDebugMode enabled/disables debug mode.

Types

type ErrorImportance

type ErrorImportance int

ErrorImportance defines how important/dangerous an error is. possible values: Critical, Normal, Debug

const (
	Critical ErrorImportance = iota
	Normal
	Debug
)

values for ErrorImportance

Jump to

Keyboard shortcuts

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