errors

package
v0.0.0-...-cb1a7a4 Latest Latest
Warning

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

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

Documentation

Overview

Package errors contains errors for the domain "rma".

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

Index

Constants

View Source
const APIAuthenticationErrorCode = "rma_api_authentication_error"

APIAuthenticationErrorCode is the code for an instance of "authentication_error".

View Source
const APIMalformedRequestErrorCode = "rma_api_malformed_request_error"

APIMalformedRequestErrorCode is the code for an instance of "malformed_request_error".

View Source
const APIObjectSerializationErrorCode = "rma_api_object_serialization_error"

APIObjectSerializationErrorCode is the code for an instance of "object_serialization_error".

View Source
const APIUnknownRequestMediaTypeErrorCode = "rma_api_unknown_request_media_type_error"

APIUnknownRequestMediaTypeErrorCode is the code for an instance of "unknown_request_media_type_error".

View Source
const ActionImageParseErrorCode = "rma_action_image_parse_error"

ActionImageParseErrorCode is the code for an instance of "image_parse_error".

View Source
const ConditionTypeErrorCode = "rma_condition_type_error"

ConditionTypeErrorCode is the code for an instance of "type_error".

View Source
const ExpressionEvaluationErrorCode = "rma_expression_evaluation_error"

ExpressionEvaluationErrorCode is the code for an instance of "evaluation_error".

View Source
const ExpressionUnresolvableErrorCode = "rma_expression_unresolvable_error"

ExpressionUnresolvableErrorCode is the code for an instance of "unresolvable_error".

View Source
const ExpressionUnsupportedLanguageErrorCode = "rma_expression_unsupported_language_error"

ExpressionUnsupportedLanguageErrorCode is the code for an instance of "unsupported_language_error".

View Source
const ModelAuthorizationErrorCode = "rma_model_authorization_error"

ModelAuthorizationErrorCode is the code for an instance of "authorization_error".

View Source
const ModelConflictErrorCode = "rma_model_conflict_error"

ModelConflictErrorCode is the code for an instance of "conflict_error".

View Source
const ModelNotFoundErrorCode = "rma_model_not_found_error"

ModelNotFoundErrorCode is the code for an instance of "not_found_error".

View Source
const ModelReadErrorCode = "rma_model_read_error"

ModelReadErrorCode is the code for an instance of "read_error".

View Source
const ModelWriteErrorCode = "rma_model_write_error"

ModelWriteErrorCode is the code for an instance of "write_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 ActionSection = &impl.ErrorSection{
	Key:   "action",
	Title: "Action errors",
}

ActionSection defines a section of errors with the following scope: Action errors

View Source
var ConditionSection = &impl.ErrorSection{
	Key:   "condition",
	Title: "Condition errors",
}

ConditionSection defines a section of errors with the following scope: Condition errors

View Source
var Domain = &impl.ErrorDomain{
	Key:   "rma",
	Title: "Relay Metadata API",
}

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

View Source
var ExpressionSection = &impl.ErrorSection{
	Key:   "expression",
	Title: "Expression errors",
}

ExpressionSection defines a section of errors with the following scope: Expression errors

View Source
var ModelSection = &impl.ErrorSection{
	Key:   "model",
	Title: "Model errors",
}

ModelSection defines a section of errors with the following scope: Model errors

Functions

func IsAPIAuthenticationError

func IsAPIAuthenticationError(err errawr.Error) bool

IsAPIAuthenticationError tests whether a given error is an instance of "authentication_error".

func IsAPIMalformedRequestError

func IsAPIMalformedRequestError(err errawr.Error) bool

IsAPIMalformedRequestError tests whether a given error is an instance of "malformed_request_error".

func IsAPIObjectSerializationError

func IsAPIObjectSerializationError(err errawr.Error) bool

IsAPIObjectSerializationError tests whether a given error is an instance of "object_serialization_error".

func IsAPIUnknownRequestMediaTypeError

func IsAPIUnknownRequestMediaTypeError(err errawr.Error) bool

IsAPIUnknownRequestMediaTypeError tests whether a given error is an instance of "unknown_request_media_type_error".

func IsActionImageParseError

func IsActionImageParseError(err errawr.Error) bool

IsActionImageParseError tests whether a given error is an instance of "image_parse_error".

func IsConditionTypeError

func IsConditionTypeError(err errawr.Error) bool

IsConditionTypeError tests whether a given error is an instance of "type_error".

func IsExpressionEvaluationError

func IsExpressionEvaluationError(err errawr.Error) bool

IsExpressionEvaluationError tests whether a given error is an instance of "evaluation_error".

func IsExpressionUnresolvableError

func IsExpressionUnresolvableError(err errawr.Error) bool

IsExpressionUnresolvableError tests whether a given error is an instance of "unresolvable_error".

func IsExpressionUnsupportedLanguageError

func IsExpressionUnsupportedLanguageError(err errawr.Error) bool

IsExpressionUnsupportedLanguageError tests whether a given error is an instance of "unsupported_language_error".

func IsModelAuthorizationError

func IsModelAuthorizationError(err errawr.Error) bool

IsModelAuthorizationError tests whether a given error is an instance of "authorization_error".

func IsModelConflictError

func IsModelConflictError(err errawr.Error) bool

IsModelConflictError tests whether a given error is an instance of "conflict_error".

func IsModelNotFoundError

func IsModelNotFoundError(err errawr.Error) bool

IsModelNotFoundError tests whether a given error is an instance of "not_found_error".

func IsModelReadError

func IsModelReadError(err errawr.Error) bool

IsModelReadError tests whether a given error is an instance of "read_error".

func IsModelWriteError

func IsModelWriteError(err errawr.Error) bool

IsModelWriteError tests whether a given error is an instance of "write_error".

Types

type APIAuthenticationErrorBuilder

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

APIAuthenticationErrorBuilder is a builder for "authentication_error" errors.

func NewAPIAuthenticationErrorBuilder

func NewAPIAuthenticationErrorBuilder() *APIAuthenticationErrorBuilder

NewAPIAuthenticationErrorBuilder creates a new error builder for the code "authentication_error".

func (*APIAuthenticationErrorBuilder) Build

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

type APIMalformedRequestErrorBuilder

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

APIMalformedRequestErrorBuilder is a builder for "malformed_request_error" errors.

func NewAPIMalformedRequestErrorBuilder

func NewAPIMalformedRequestErrorBuilder() *APIMalformedRequestErrorBuilder

NewAPIMalformedRequestErrorBuilder creates a new error builder for the code "malformed_request_error".

func (*APIMalformedRequestErrorBuilder) Build

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

type APIObjectSerializationErrorBuilder

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

APIObjectSerializationErrorBuilder is a builder for "object_serialization_error" errors.

func NewAPIObjectSerializationErrorBuilder

func NewAPIObjectSerializationErrorBuilder() *APIObjectSerializationErrorBuilder

NewAPIObjectSerializationErrorBuilder creates a new error builder for the code "object_serialization_error".

func (*APIObjectSerializationErrorBuilder) Build

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

type APIUnknownRequestMediaTypeErrorBuilder

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

APIUnknownRequestMediaTypeErrorBuilder is a builder for "unknown_request_media_type_error" errors.

func NewAPIUnknownRequestMediaTypeErrorBuilder

func NewAPIUnknownRequestMediaTypeErrorBuilder(mediaType string) *APIUnknownRequestMediaTypeErrorBuilder

NewAPIUnknownRequestMediaTypeErrorBuilder creates a new error builder for the code "unknown_request_media_type_error".

func (*APIUnknownRequestMediaTypeErrorBuilder) Build

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

type ActionImageParseErrorBuilder

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

ActionImageParseErrorBuilder is a builder for "image_parse_error" errors.

func NewActionImageParseErrorBuilder

func NewActionImageParseErrorBuilder() *ActionImageParseErrorBuilder

NewActionImageParseErrorBuilder creates a new error builder for the code "image_parse_error".

func (*ActionImageParseErrorBuilder) Build

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

type ConditionTypeErrorBuilder

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

ConditionTypeErrorBuilder is a builder for "type_error" errors.

func NewConditionTypeErrorBuilder

func NewConditionTypeErrorBuilder(type_ string) *ConditionTypeErrorBuilder

NewConditionTypeErrorBuilder creates a new error builder for the code "type_error".

func (*ConditionTypeErrorBuilder) Build

func (b *ConditionTypeErrorBuilder) Build() Error

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

type Error

type Error interface {
	errawr.Error
}

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

func NewAPIAuthenticationError

func NewAPIAuthenticationError() Error

NewAPIAuthenticationError creates a new error with the code "authentication_error".

func NewAPIMalformedRequestError

func NewAPIMalformedRequestError() Error

NewAPIMalformedRequestError creates a new error with the code "malformed_request_error".

func NewAPIObjectSerializationError

func NewAPIObjectSerializationError() Error

NewAPIObjectSerializationError creates a new error with the code "object_serialization_error".

func NewAPIUnknownRequestMediaTypeError

func NewAPIUnknownRequestMediaTypeError(mediaType string) Error

NewAPIUnknownRequestMediaTypeError creates a new error with the code "unknown_request_media_type_error".

func NewActionImageParseError

func NewActionImageParseError() Error

NewActionImageParseError creates a new error with the code "image_parse_error".

func NewConditionTypeError

func NewConditionTypeError(type_ string) Error

NewConditionTypeError creates a new error with the code "type_error".

func NewExpressionEvaluationError

func NewExpressionEvaluationError(error string) Error

NewExpressionEvaluationError creates a new error with the code "evaluation_error".

func NewExpressionUnresolvableError

func NewExpressionUnresolvableError(errors []string) Error

NewExpressionUnresolvableError creates a new error with the code "unresolvable_error".

func NewExpressionUnsupportedLanguageError

func NewExpressionUnsupportedLanguageError(language string) Error

NewExpressionUnsupportedLanguageError creates a new error with the code "unsupported_language_error".

func NewModelAuthorizationError

func NewModelAuthorizationError() Error

NewModelAuthorizationError creates a new error with the code "authorization_error".

func NewModelConflictError

func NewModelConflictError() Error

NewModelConflictError creates a new error with the code "conflict_error".

func NewModelNotFoundError

func NewModelNotFoundError() Error

NewModelNotFoundError creates a new error with the code "not_found_error".

func NewModelReadError

func NewModelReadError() Error

NewModelReadError creates a new error with the code "read_error".

func NewModelWriteError

func NewModelWriteError() Error

NewModelWriteError creates a new error with the code "write_error".

type ExpressionEvaluationErrorBuilder

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

ExpressionEvaluationErrorBuilder is a builder for "evaluation_error" errors.

func NewExpressionEvaluationErrorBuilder

func NewExpressionEvaluationErrorBuilder(error string) *ExpressionEvaluationErrorBuilder

NewExpressionEvaluationErrorBuilder creates a new error builder for the code "evaluation_error".

func (*ExpressionEvaluationErrorBuilder) Build

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

type ExpressionUnresolvableErrorBuilder

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

ExpressionUnresolvableErrorBuilder is a builder for "unresolvable_error" errors.

func NewExpressionUnresolvableErrorBuilder

func NewExpressionUnresolvableErrorBuilder(errors []string) *ExpressionUnresolvableErrorBuilder

NewExpressionUnresolvableErrorBuilder creates a new error builder for the code "unresolvable_error".

func (*ExpressionUnresolvableErrorBuilder) Build

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

type ExpressionUnsupportedLanguageErrorBuilder

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

ExpressionUnsupportedLanguageErrorBuilder is a builder for "unsupported_language_error" errors.

func NewExpressionUnsupportedLanguageErrorBuilder

func NewExpressionUnsupportedLanguageErrorBuilder(language string) *ExpressionUnsupportedLanguageErrorBuilder

NewExpressionUnsupportedLanguageErrorBuilder creates a new error builder for the code "unsupported_language_error".

func (*ExpressionUnsupportedLanguageErrorBuilder) Build

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

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) IsAPIAuthenticationError

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

IsAPIAuthenticationError tests whether a given error is an instance of "authentication_error".

func (External) IsAPIMalformedRequestError

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

IsAPIMalformedRequestError tests whether a given error is an instance of "malformed_request_error".

func (External) IsAPIObjectSerializationError

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

IsAPIObjectSerializationError tests whether a given error is an instance of "object_serialization_error".

func (External) IsAPIUnknownRequestMediaTypeError

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

IsAPIUnknownRequestMediaTypeError tests whether a given error is an instance of "unknown_request_media_type_error".

func (External) IsActionImageParseError

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

IsActionImageParseError tests whether a given error is an instance of "image_parse_error".

func (External) IsConditionTypeError

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

IsConditionTypeError tests whether a given error is an instance of "type_error".

func (External) IsExpressionEvaluationError

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

IsExpressionEvaluationError tests whether a given error is an instance of "evaluation_error".

func (External) IsExpressionUnresolvableError

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

IsExpressionUnresolvableError tests whether a given error is an instance of "unresolvable_error".

func (External) IsExpressionUnsupportedLanguageError

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

IsExpressionUnsupportedLanguageError tests whether a given error is an instance of "unsupported_language_error".

func (External) IsModelAuthorizationError

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

IsModelAuthorizationError tests whether a given error is an instance of "authorization_error".

func (External) IsModelConflictError

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

IsModelConflictError tests whether a given error is an instance of "conflict_error".

func (External) IsModelNotFoundError

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

IsModelNotFoundError tests whether a given error is an instance of "not_found_error".

func (External) IsModelReadError

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

IsModelReadError tests whether a given error is an instance of "read_error".

func (External) IsModelWriteError

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

IsModelWriteError tests whether a given error is an instance of "write_error".

type ModelAuthorizationErrorBuilder

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

ModelAuthorizationErrorBuilder is a builder for "authorization_error" errors.

func NewModelAuthorizationErrorBuilder

func NewModelAuthorizationErrorBuilder() *ModelAuthorizationErrorBuilder

NewModelAuthorizationErrorBuilder creates a new error builder for the code "authorization_error".

func (*ModelAuthorizationErrorBuilder) Build

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

type ModelConflictErrorBuilder

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

ModelConflictErrorBuilder is a builder for "conflict_error" errors.

func NewModelConflictErrorBuilder

func NewModelConflictErrorBuilder() *ModelConflictErrorBuilder

NewModelConflictErrorBuilder creates a new error builder for the code "conflict_error".

func (*ModelConflictErrorBuilder) Build

func (b *ModelConflictErrorBuilder) Build() Error

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

type ModelNotFoundErrorBuilder

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

ModelNotFoundErrorBuilder is a builder for "not_found_error" errors.

func NewModelNotFoundErrorBuilder

func NewModelNotFoundErrorBuilder() *ModelNotFoundErrorBuilder

NewModelNotFoundErrorBuilder creates a new error builder for the code "not_found_error".

func (*ModelNotFoundErrorBuilder) Build

func (b *ModelNotFoundErrorBuilder) Build() Error

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

type ModelReadErrorBuilder

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

ModelReadErrorBuilder is a builder for "read_error" errors.

func NewModelReadErrorBuilder

func NewModelReadErrorBuilder() *ModelReadErrorBuilder

NewModelReadErrorBuilder creates a new error builder for the code "read_error".

func (*ModelReadErrorBuilder) Build

func (b *ModelReadErrorBuilder) Build() Error

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

type ModelWriteErrorBuilder

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

ModelWriteErrorBuilder is a builder for "write_error" errors.

func NewModelWriteErrorBuilder

func NewModelWriteErrorBuilder() *ModelWriteErrorBuilder

NewModelWriteErrorBuilder creates a new error builder for the code "write_error".

func (*ModelWriteErrorBuilder) Build

func (b *ModelWriteErrorBuilder) Build() Error

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

Jump to

Keyboard shortcuts

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