Documentation ¶
Overview ¶
Package errors contains errors for the domain "rma".
This file is automatically generated by errawr-gen. Do not modify it.
Index ¶
- Constants
- Variables
- func IsAPIAuthenticationError(err errawr.Error) bool
- func IsAPIMalformedRequestError(err errawr.Error) bool
- func IsAPIObjectSerializationError(err errawr.Error) bool
- func IsAPIUnknownRequestMediaTypeError(err errawr.Error) bool
- func IsActionImageParseError(err errawr.Error) bool
- func IsConditionTypeError(err errawr.Error) bool
- func IsExpressionEvaluationError(err errawr.Error) bool
- func IsExpressionUnresolvableError(err errawr.Error) bool
- func IsExpressionUnsupportedLanguageError(err errawr.Error) bool
- func IsModelAuthorizationError(err errawr.Error) bool
- func IsModelConflictError(err errawr.Error) bool
- func IsModelNotFoundError(err errawr.Error) bool
- func IsModelReadError(err errawr.Error) bool
- func IsModelWriteError(err errawr.Error) bool
- type APIAuthenticationErrorBuilder
- type APIMalformedRequestErrorBuilder
- type APIObjectSerializationErrorBuilder
- type APIUnknownRequestMediaTypeErrorBuilder
- type ActionImageParseErrorBuilder
- type ConditionTypeErrorBuilder
- type Error
- func NewAPIAuthenticationError() Error
- func NewAPIMalformedRequestError() Error
- func NewAPIObjectSerializationError() Error
- func NewAPIUnknownRequestMediaTypeError(mediaType string) Error
- func NewActionImageParseError() Error
- func NewConditionTypeError(type_ string) Error
- func NewExpressionEvaluationError(error string) Error
- func NewExpressionUnresolvableError(errors []string) Error
- func NewExpressionUnsupportedLanguageError(language string) Error
- func NewModelAuthorizationError() Error
- func NewModelConflictError() Error
- func NewModelNotFoundError() Error
- func NewModelReadError() Error
- func NewModelWriteError() Error
- type ExpressionEvaluationErrorBuilder
- type ExpressionUnresolvableErrorBuilder
- type ExpressionUnsupportedLanguageErrorBuilder
- type External
- func (External) IsAPIAuthenticationError(err errawr.Error) bool
- func (External) IsAPIMalformedRequestError(err errawr.Error) bool
- func (External) IsAPIObjectSerializationError(err errawr.Error) bool
- func (External) IsAPIUnknownRequestMediaTypeError(err errawr.Error) bool
- func (External) IsActionImageParseError(err errawr.Error) bool
- func (External) IsConditionTypeError(err errawr.Error) bool
- func (External) IsExpressionEvaluationError(err errawr.Error) bool
- func (External) IsExpressionUnresolvableError(err errawr.Error) bool
- func (External) IsExpressionUnsupportedLanguageError(err errawr.Error) bool
- func (External) IsModelAuthorizationError(err errawr.Error) bool
- func (External) IsModelConflictError(err errawr.Error) bool
- func (External) IsModelNotFoundError(err errawr.Error) bool
- func (External) IsModelReadError(err errawr.Error) bool
- func (External) IsModelWriteError(err errawr.Error) bool
- type ModelAuthorizationErrorBuilder
- type ModelConflictErrorBuilder
- type ModelNotFoundErrorBuilder
- type ModelReadErrorBuilder
- type ModelWriteErrorBuilder
Constants ¶
const APIAuthenticationErrorCode = "rma_api_authentication_error"
APIAuthenticationErrorCode is the code for an instance of "authentication_error".
const APIMalformedRequestErrorCode = "rma_api_malformed_request_error"
APIMalformedRequestErrorCode is the code for an instance of "malformed_request_error".
const APIObjectSerializationErrorCode = "rma_api_object_serialization_error"
APIObjectSerializationErrorCode is the code for an instance of "object_serialization_error".
const APIUnknownRequestMediaTypeErrorCode = "rma_api_unknown_request_media_type_error"
APIUnknownRequestMediaTypeErrorCode is the code for an instance of "unknown_request_media_type_error".
const ActionImageParseErrorCode = "rma_action_image_parse_error"
ActionImageParseErrorCode is the code for an instance of "image_parse_error".
const ConditionTypeErrorCode = "rma_condition_type_error"
ConditionTypeErrorCode is the code for an instance of "type_error".
const ExpressionEvaluationErrorCode = "rma_expression_evaluation_error"
ExpressionEvaluationErrorCode is the code for an instance of "evaluation_error".
const ExpressionUnresolvableErrorCode = "rma_expression_unresolvable_error"
ExpressionUnresolvableErrorCode is the code for an instance of "unresolvable_error".
const ExpressionUnsupportedLanguageErrorCode = "rma_expression_unsupported_language_error"
ExpressionUnsupportedLanguageErrorCode is the code for an instance of "unsupported_language_error".
const ModelAuthorizationErrorCode = "rma_model_authorization_error"
ModelAuthorizationErrorCode is the code for an instance of "authorization_error".
const ModelConflictErrorCode = "rma_model_conflict_error"
ModelConflictErrorCode is the code for an instance of "conflict_error".
const ModelNotFoundErrorCode = "rma_model_not_found_error"
ModelNotFoundErrorCode is the code for an instance of "not_found_error".
const ModelReadErrorCode = "rma_model_read_error"
ModelReadErrorCode is the code for an instance of "read_error".
const ModelWriteErrorCode = "rma_model_write_error"
ModelWriteErrorCode is the code for an instance of "write_error".
Variables ¶
var APISection = &impl.ErrorSection{
Key: "api",
Title: "API errors",
}
APISection defines a section of errors with the following scope: API errors
var ActionSection = &impl.ErrorSection{
Key: "action",
Title: "Action errors",
}
ActionSection defines a section of errors with the following scope: Action errors
var ConditionSection = &impl.ErrorSection{
Key: "condition",
Title: "Condition errors",
}
ConditionSection defines a section of errors with the following scope: Condition errors
var Domain = &impl.ErrorDomain{
Key: "rma",
Title: "Relay Metadata API",
}
Domain is the general domain in which all errors in this package belong.
var ExpressionSection = &impl.ErrorSection{
Key: "expression",
Title: "Expression errors",
}
ExpressionSection defines a section of errors with the following scope: Expression errors
var ModelSection = &impl.ErrorSection{
Key: "model",
Title: "Model errors",
}
ModelSection defines a section of errors with the following scope: Model errors
Functions ¶
func IsAPIAuthenticationError ¶
IsAPIAuthenticationError tests whether a given error is an instance of "authentication_error".
func IsAPIMalformedRequestError ¶
IsAPIMalformedRequestError tests whether a given error is an instance of "malformed_request_error".
func IsAPIObjectSerializationError ¶
IsAPIObjectSerializationError tests whether a given error is an instance of "object_serialization_error".
func IsAPIUnknownRequestMediaTypeError ¶
IsAPIUnknownRequestMediaTypeError tests whether a given error is an instance of "unknown_request_media_type_error".
func IsActionImageParseError ¶
IsActionImageParseError tests whether a given error is an instance of "image_parse_error".
func IsConditionTypeError ¶
IsConditionTypeError tests whether a given error is an instance of "type_error".
func IsExpressionEvaluationError ¶
IsExpressionEvaluationError tests whether a given error is an instance of "evaluation_error".
func IsExpressionUnresolvableError ¶
IsExpressionUnresolvableError tests whether a given error is an instance of "unresolvable_error".
func IsExpressionUnsupportedLanguageError ¶
IsExpressionUnsupportedLanguageError tests whether a given error is an instance of "unsupported_language_error".
func IsModelAuthorizationError ¶
IsModelAuthorizationError tests whether a given error is an instance of "authorization_error".
func IsModelConflictError ¶
IsModelConflictError tests whether a given error is an instance of "conflict_error".
func IsModelNotFoundError ¶
IsModelNotFoundError tests whether a given error is an instance of "not_found_error".
func IsModelReadError ¶
IsModelReadError tests whether a given error is an instance of "read_error".
func IsModelWriteError ¶
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 ¶
func (b *APIAuthenticationErrorBuilder) Build() Error
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 ¶
func (b *APIMalformedRequestErrorBuilder) Build() Error
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 ¶
func (b *APIObjectSerializationErrorBuilder) Build() Error
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 ¶
func (b *APIUnknownRequestMediaTypeErrorBuilder) Build() Error
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 ¶
func (b *ActionImageParseErrorBuilder) Build() Error
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 ¶
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 ¶
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 ¶
NewConditionTypeError creates a new error with the code "type_error".
func NewExpressionEvaluationError ¶
NewExpressionEvaluationError creates a new error with the code "evaluation_error".
func NewExpressionUnresolvableError ¶
NewExpressionUnresolvableError creates a new error with the code "unresolvable_error".
func NewExpressionUnsupportedLanguageError ¶
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 ¶
func (b *ExpressionEvaluationErrorBuilder) Build() Error
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 ¶
func (b *ExpressionUnresolvableErrorBuilder) Build() Error
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 ¶
func (b *ExpressionUnsupportedLanguageErrorBuilder) Build() Error
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 ¶
IsAPIAuthenticationError tests whether a given error is an instance of "authentication_error".
func (External) IsAPIMalformedRequestError ¶
IsAPIMalformedRequestError tests whether a given error is an instance of "malformed_request_error".
func (External) IsAPIObjectSerializationError ¶
IsAPIObjectSerializationError tests whether a given error is an instance of "object_serialization_error".
func (External) IsAPIUnknownRequestMediaTypeError ¶
IsAPIUnknownRequestMediaTypeError tests whether a given error is an instance of "unknown_request_media_type_error".
func (External) IsActionImageParseError ¶
IsActionImageParseError tests whether a given error is an instance of "image_parse_error".
func (External) IsConditionTypeError ¶
IsConditionTypeError tests whether a given error is an instance of "type_error".
func (External) IsExpressionEvaluationError ¶
IsExpressionEvaluationError tests whether a given error is an instance of "evaluation_error".
func (External) IsExpressionUnresolvableError ¶
IsExpressionUnresolvableError tests whether a given error is an instance of "unresolvable_error".
func (External) IsExpressionUnsupportedLanguageError ¶
IsExpressionUnsupportedLanguageError tests whether a given error is an instance of "unsupported_language_error".
func (External) IsModelAuthorizationError ¶
IsModelAuthorizationError tests whether a given error is an instance of "authorization_error".
func (External) IsModelConflictError ¶
IsModelConflictError tests whether a given error is an instance of "conflict_error".
func (External) IsModelNotFoundError ¶
IsModelNotFoundError tests whether a given error is an instance of "not_found_error".
func (External) IsModelReadError ¶
IsModelReadError tests whether a given error is an instance of "read_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 ¶
func (b *ModelAuthorizationErrorBuilder) Build() Error
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.