softerrors

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Softerrors is a helper package that enables the programmer to log specific errors instead of exiting the program.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Consume

func Consume(err error) error

Logs err as soft error if soft errors are enabled, then returns nil. Returns err if soft errors are disabled.

func Errorf

func Errorf(format string, a ...any) error

Creates a new formatted soft error, logs it, then returns nil. Returns a new formatted error if soft errors are disabled.

func StopOnSoftError

func StopOnSoftError()

Disables soft errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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