Documentation
¶
Overview ¶
Package errors contains errors for the domain "hhttp".
This file is automatically generated by errawr-gen. Do not modify it.
Index ¶
- Constants
- Variables
- func IsAPICachedResourceNotAvailableError(err errawr.Error) bool
- func IsAPIResourceModifiedError(err errawr.Error) bool
- func IsAPIResourceSerializationError(err errawr.Error) bool
- type APICachedResourceNotAvailableErrorBuilder
- type APIResourceModifiedErrorBuilder
- type APIResourceSerializationErrorBuilder
- type Error
- type External
Constants ¶
const APICachedResourceNotAvailableErrorCode = "hhttp_api_cached_resource_not_available_error"
APICachedResourceNotAvailableErrorCode is the code for an instance of "cached_resource_not_available_error".
const APIResourceModifiedErrorCode = "hhttp_api_resource_modified_error"
APIResourceModifiedErrorCode is the code for an instance of "resource_modified_error".
const APIResourceSerializationErrorCode = "hhttp_api_resource_serialization_error"
APIResourceSerializationErrorCode is the code for an instance of "resource_serialization_error".
Variables ¶
var APISection = &impl.ErrorSection{
Key: "api",
Title: "API errors",
}
APISection defines a section of errors with the following scope: API errors
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 ¶
IsAPICachedResourceNotAvailableError tests whether a given error is an instance of "cached_resource_not_available_error".
func IsAPIResourceModifiedError ¶
IsAPIResourceModifiedError tests whether a given error is an instance of "resource_modified_error".
func IsAPIResourceSerializationError ¶
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 ¶
func (b *APICachedResourceNotAvailableErrorBuilder) Build() Error
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 ¶
func (b *APIResourceModifiedErrorBuilder) Build() Error
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 ¶
func (b *APIResourceSerializationErrorBuilder) Build() Error
Build creates the error for the code "resource_serialization_error" from this builder.
type 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 ¶
IsAPICachedResourceNotAvailableError tests whether a given error is an instance of "cached_resource_not_available_error".
func (External) IsAPIResourceModifiedError ¶
IsAPIResourceModifiedError tests whether a given error is an instance of "resource_modified_error".