errors

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package errors contains errors for the domain "hhttp".

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

Index

Constants

View Source
const APICachedResourceNotAvailableErrorCode = "hhttp_api_cached_resource_not_available_error"

APICachedResourceNotAvailableErrorCode is the code for an instance of "cached_resource_not_available_error".

View Source
const APIResourceModifiedErrorCode = "hhttp_api_resource_modified_error"

APIResourceModifiedErrorCode is the code for an instance of "resource_modified_error".

View Source
const APIResourceSerializationErrorCode = "hhttp_api_resource_serialization_error"

APIResourceSerializationErrorCode is the code for an instance of "resource_serialization_error".

Variables

View Source
var APISection = &impl.ErrorSection{
	Key:   "api",
	Title: "API errors",
}

APISection defines a section of errors with the following scope: API errors

View Source
var Domain = &impl.ErrorDomain{
	Key:   "hhttp",
	Title: "Horsehead HTTP Library",
}

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

Functions

func IsAPICachedResourceNotAvailableError

func IsAPICachedResourceNotAvailableError(err errawr.Error) bool

IsAPICachedResourceNotAvailableError tests whether a given error is an instance of "cached_resource_not_available_error".

func IsAPIResourceModifiedError

func IsAPIResourceModifiedError(err errawr.Error) bool

IsAPIResourceModifiedError tests whether a given error is an instance of "resource_modified_error".

func IsAPIResourceSerializationError

func IsAPIResourceSerializationError(err errawr.Error) bool

IsAPIResourceSerializationError tests whether a given error is an instance of "resource_serialization_error".

Types

type APICachedResourceNotAvailableErrorBuilder

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

APICachedResourceNotAvailableErrorBuilder is a builder for "cached_resource_not_available_error" errors.

func NewAPICachedResourceNotAvailableErrorBuilder

func NewAPICachedResourceNotAvailableErrorBuilder() *APICachedResourceNotAvailableErrorBuilder

NewAPICachedResourceNotAvailableErrorBuilder creates a new error builder for the code "cached_resource_not_available_error".

func (*APICachedResourceNotAvailableErrorBuilder) Build

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

type APIResourceModifiedErrorBuilder

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

APIResourceModifiedErrorBuilder is a builder for "resource_modified_error" errors.

func NewAPIResourceModifiedErrorBuilder

func NewAPIResourceModifiedErrorBuilder() *APIResourceModifiedErrorBuilder

NewAPIResourceModifiedErrorBuilder creates a new error builder for the code "resource_modified_error".

func (*APIResourceModifiedErrorBuilder) Build

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

type APIResourceSerializationErrorBuilder

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

APIResourceSerializationErrorBuilder is a builder for "resource_serialization_error" errors.

func NewAPIResourceSerializationErrorBuilder

func NewAPIResourceSerializationErrorBuilder() *APIResourceSerializationErrorBuilder

NewAPIResourceSerializationErrorBuilder creates a new error builder for the code "resource_serialization_error".

func (*APIResourceSerializationErrorBuilder) Build

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

type Error

type Error interface {
	errawr.Error
}

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

func NewAPICachedResourceNotAvailableError

func NewAPICachedResourceNotAvailableError() Error

NewAPICachedResourceNotAvailableError creates a new error with the code "cached_resource_not_available_error".

func NewAPIResourceModifiedError

func NewAPIResourceModifiedError() Error

NewAPIResourceModifiedError creates a new error with the code "resource_modified_error".

func NewAPIResourceSerializationError

func NewAPIResourceSerializationError() Error

NewAPIResourceSerializationError creates a new error with the code "resource_serialization_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) IsAPICachedResourceNotAvailableError

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

IsAPICachedResourceNotAvailableError tests whether a given error is an instance of "cached_resource_not_available_error".

func (External) IsAPIResourceModifiedError

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

IsAPIResourceModifiedError tests whether a given error is an instance of "resource_modified_error".

func (External) IsAPIResourceSerializationError

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

IsAPIResourceSerializationError tests whether a given error is an instance of "resource_serialization_error".

Jump to

Keyboard shortcuts

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