zerrors

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 2 Imported by: 48

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrorSoft

func IsErrorSoft(err error) bool

func IsStatusError

func IsStatusError(err error, allowedStatusCodes ...int32) bool

func NewMissingRequiredError

func NewMissingRequiredError(format string, a ...interface{}) error

func NewSoftError

func NewSoftError(format string, a ...interface{}) error

Types

type MissingRequiredError

type MissingRequiredError struct {
	Soft bool
	// contains filtered or unexported fields
}

func (MissingRequiredError) Error

func (e MissingRequiredError) Error() string

func (MissingRequiredError) IsSoft

func (e MissingRequiredError) IsSoft() bool

type SoftError

type SoftError interface {
	IsSoft() bool
}

Jump to

Keyboard shortcuts

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