libsignalgo.mau.fi/libsignal/util/errorhelper Index | Files

package errorhelper

import "go.mau.fi/libsignal/util/errorhelper"

Index

Types

type MultiError

type MultiError struct {
	// contains filtered or unexported fields
}

MultiError is a structure for holding multiple errors so they can be checked at a later point.

func NewMultiError

func NewMultiError() *MultiError

NewMultiError returns a new MultiError object.

func (*MultiError) Add

func (m *MultiError) Add(err error)

Add will add the given error if it is not nil.

func (*MultiError) Error

func (m *MultiError) Error() string

Error will print the first error is encountered.

func (*MultiError) HasErrors

func (m *MultiError) HasErrors() bool

HasErrors will return true if any non-nil errors have been added.

Source Files

ErrorHelper.go

Version
v0.1.2 (latest)
Published
Feb 12, 2025
Platform
linux/amd64
Last checked
1 week ago

Tools for package owners.