bazica

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleInternalError

func HandleInternalError(err error, fields map[string]any)

HandleInternalError handle errors that occur from non api facing functions For example, from scheduled or cron jobs , goroutines etc./*

Types

type ValidationError

type ValidationError struct {
	HttpErrorCode int
	Message       string
}

func ExtractValidationError

func ExtractValidationError(err error) *ValidationError

func NewValidationError

func NewValidationError(code int, message string) *ValidationError

func (*ValidationError) Error

func (v *ValidationError) Error() string

Jump to

Keyboard shortcuts

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