custom_error

package
v0.0.0-...-991bd03 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomError

type CustomError struct {
	ErrorContext *ErrorContext
}

func SetCustomError

func SetCustomError(errContext *ErrorContext) *CustomError

func (*CustomError) Error

func (c *CustomError) Error() string

type ErrorContext

type ErrorContext struct {
	HTTPCode int
	Message  string
}

Jump to

Keyboard shortcuts

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