errors

package
v0.0.0-...-7fa7ca5 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleEntErrors

func HandleEntErrors(err error) error

HandleEntError is a method to handle Ent's errors.

Types

type Error

type Error struct {
	Code    int         `json:"code"`
	Message interface{} `json:"message"`
}

Error represents an error that occurred while handling a request.

func NewErrors

func NewErrors(code int, messages ...interface{}) *Error

NewErrors creates multiple new Error messages

func (*Error) Error

func (e *Error) Error() string

Error makes it compatible with the `error` interface.

Jump to

Keyboard shortcuts

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