errors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package errors contains errors for the domain "hnu".

This file is automatically generated by errawr-gen. Do not modify it.

Index

Constants

View Source
const BackoffContextCancelledErrorCode = "hnu_backoff_context_cancelled_error"

BackoffContextCancelledErrorCode is the code for an instance of "context_cancelled_error".

Variables

View Source
var BackoffSection = &impl.ErrorSection{
	Key:   "backoff",
	Title: "Net util backoff errors",
}

BackoffSection defines a section of errors with the following scope: Net util backoff errors

View Source
var Domain = &impl.ErrorDomain{
	Key:   "hnu",
	Title: "Horsehead network utilities",
}

Domain is the general domain in which all errors in this package belong.

Functions

func IsBackoffContextCancelledError

func IsBackoffContextCancelledError(err errawr.Error) bool

IsBackoffContextCancelledError tests whether a given error is an instance of "context_cancelled_error".

Types

type BackoffContextCancelledErrorBuilder

type BackoffContextCancelledErrorBuilder struct {
	// contains filtered or unexported fields
}

BackoffContextCancelledErrorBuilder is a builder for "context_cancelled_error" errors.

func NewBackoffContextCancelledErrorBuilder

func NewBackoffContextCancelledErrorBuilder() *BackoffContextCancelledErrorBuilder

NewBackoffContextCancelledErrorBuilder creates a new error builder for the code "context_cancelled_error".

func (*BackoffContextCancelledErrorBuilder) Build

Build creates the error for the code "context_cancelled_error" from this builder.

type Error

type Error interface {
	errawr.Error
}

Error is the type of all errors generated by this package.

func NewBackoffContextCancelledError

func NewBackoffContextCancelledError() Error

NewBackoffContextCancelledError creates a new error with the code "context_cancelled_error".

type External

type External struct{}

External contains methods that can be used externally to help consume errors from this package.

var API External

API is a singleton instance of the External type.

func (External) IsBackoffContextCancelledError

func (External) IsBackoffContextCancelledError(err errawr.Error) bool

IsBackoffContextCancelledError tests whether a given error is an instance of "context_cancelled_error".

Jump to

Keyboard shortcuts

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