errors

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

README

Koverto - Errors

Go

Provides common custom error types for sharing across microservices. Wraps github.com/micro/go-micro/v2/errors.

Copyright © 2020 Jesse B. Hannah. Licensed under the GNU GPL version 3 or later.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(id, format string, a ...interface{}) error

func Conflict

func Conflict(id, format string, a ...interface{}) error

func Forbidden

func Forbidden(id, format string, a ...interface{}) error

func InternalServerError

func InternalServerError(id, format string, a ...interface{}) error

func MethodNotAllowed

func MethodNotAllowed(id, format string, a ...interface{}) error

func NotFound

func NotFound(id, format string, a ...interface{}) error

func Timeout

func Timeout(id, format string, a ...interface{}) error

func Unauthorized

func Unauthorized(id, format string, a ...interface{}) error

Types

type Error

type Error = errors.Error

func NotImplemented

func NotImplemented(id string) *Error

Jump to

Keyboard shortcuts

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