factory

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProtoAppError added in v0.10.1

func NewProtoAppError(opts Options) *mrerr.ProtoAppError

NewProtoAppError - создаёт объект ProtoAppError с указанными опциями. При этом для генерации ID и стека используются функции из пакета features.

Types

type Options

type Options struct {
	Code            string
	Kind            mrerr.ErrorKind
	Message         string
	WithIDGenerator bool
	WithCaller      bool
}

Options - опции для создания ProtoAppError.

Jump to

Keyboard shortcuts

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