errors

package
v0.0.0-...-278084b Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserNotFound error = Error{
		Message: "Can't find user with id #42\n",
	}
	ErrUserAlreadyCreatedError error = Error{
		Message: "something went wrong",
	}
	ErrForumAlreadyCreatedError error = Error{
		Message: "something went wrong",
	}
	ErrThreadAlreadyCreatedError error = Error{
		Message: "something went wrong",
	}
	ErrBadRequest error = Error{
		Message: "incorrect request",
	}
)

Functions

func CreateError

func CreateError(err error) error

Types

type Error

type Error struct {
	Message string `json:"message"`
}

func (Error) Error

func (err Error) Error() string

Jump to

Keyboard shortcuts

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