errors

package
v0.0.0-...-002919c Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RepositoryUninitialized = Initialize(500, "Uninitialized repository is not available")
	JwtUninitialized        = Initialize(500, "Uninitialized jwt is not available")
	RequestBodyDecodeFailed = Initialize(400, "RequestBody decode failed.")
	RoleIdAlreadyExists     = Initialize(400, "The role-id is already exists.")
	SigninFailed            = Initialize(400, "Signin failed")
	AdminRoleExists         = Initialize(400, "The role-id is already exists.")
	UnAuthorized            = Initialize(401, "Unauthorized")
	OasUndefined            = Initialize(404, "OAS is undefined")
	OasValidationFailure    = Initialize(500, "OAS validation failure.")
	AdminUserNotfound       = Initialize(404, "Admin User not found.")
	Forbidden               = Initialize(403, "Forbidden")
	MismatchState           = Initialize(400, "State is mismatch.")
)

Functions

This section is empty.

Types

type VironError

type VironError struct {
	// contains filtered or unexported fields
}

func Initialize

func Initialize(code int, message string) *VironError

func (*VironError) Error

func (v *VironError) Error() string

func (*VironError) MarshalJSON

func (v *VironError) MarshalJSON() ([]byte, error)

func (*VironError) StatusCode

func (v *VironError) StatusCode() int

Jump to

Keyboard shortcuts

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