errors

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFound       error = errors.New("Not Found")
	Timedout       error = errors.New("Timedout")
	InvalidInput   error = errors.New("Invalid Input")
	NotSupported   error = errors.New("Not Supported")
	AlreadyExists  error = errors.New("Already Exists")
	InvalidFilter  error = errors.New("Invalid Filter")
	Failed         error = errors.New("Failed")
	NotImplemented error = errors.New("Not Implemented")
	Unknown        error = errors.New("Unknown Reason")
)

Functions

func IsAlreadyExists

func IsAlreadyExists(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func New

func New(errString string) error

func Wrap

func Wrap(cause error, message string) error

func Wrapf

func Wrapf(err error, format string, args ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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