customerrors

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppError

type AppError struct {
	StatusCode int
	ErrorText  string
}

func NewAppError

func NewAppError(statusCode int, errorText string) AppError

The NewAppError creates a new AppError from an http statuscode and text string.

func (AppError) Error

func (ae AppError) Error() string

The AppError.Error is the generic custom error for the Webhook Go app.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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