apperrors

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValidationError = 6
	AuthError       = 7
	ServiceError    = 8
	UnknownError    = 9
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppError

type AppError struct {
	Code         int
	Message      string
	ResponseType int
	// contains filtered or unexported fields
}

func NewAuthError

func NewAuthError(code int, message string) *AppError

func NewError

func NewError(code int, message string, responseType int) *AppError

func NewServiceError

func NewServiceError(code int, message string) *AppError

func NewValidationError

func NewValidationError(code int, message string) *AppError

func (AppError) Error

func (e AppError) Error() string

func (*AppError) Wrap

func (e *AppError) Wrap(err error) *AppError

Jump to

Keyboard shortcuts

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