errors

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Common error
	CodeBadRequest   = "BAD_REQEUEST"
	CodeUnauthorized = "UNAUTHORIZED"
	CodeServerError  = "INTERNAL_SERVER_ERROR"

	// Resource not found
	CodeNotFound     = "NOT_FOUND"
	CodeNotFoundUser = CodeNotFound + codeResouceUser

	// Resource confilct
	CodeConflict     = "CONFLICT"
	CodeConflictUser = CodeConflict + codeResouceUser

	// Common error
	MsgBadRequest   = "Bad Request"
	MsgUnauthorized = "Unauthroized"
	MsgServerError  = "Internal server error"

	// Resource not found
	MsgNotFound     = "Not found"
	MsgNotFoundUser = msgResourcesUser + MsgNotFound

	// Resource conflict
	MsgConflict     = "Conflit"
	MsgConflictUser = msgResourcesUser + MsgConflict
)

Error code

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrResouce

type ErrResouce string

Error resource

const (
	ErrResouceUser ErrResouce = "USER"
)

Jump to

Keyboard shortcuts

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