errordetails

package
v2.0.0-...-1b619d4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_apis_errordetails_v2_errordetails_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Backend

type Backend struct {

	// Backend error message.
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// Backend HTTP response header.
	Header map[string]string `` /* 153-byte string literal not displayed */
	// Backend HTTP status code.
	StatusCode int32 `protobuf:"varint,3,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	// contains filtered or unexported fields
}

Backend is error detail for Backend.

func (*Backend) Descriptor deprecated

func (*Backend) Descriptor() ([]byte, []int)

Deprecated: Use Backend.ProtoReflect.Descriptor instead.

func (*Backend) GetHeader

func (x *Backend) GetHeader() map[string]string

func (*Backend) GetMessage

func (x *Backend) GetMessage() string

func (*Backend) GetStatusCode

func (x *Backend) GetStatusCode() int32

func (*Backend) ProtoMessage

func (*Backend) ProtoMessage()

func (*Backend) ProtoReflect

func (x *Backend) ProtoReflect() protoreflect.Message

func (*Backend) Reset

func (x *Backend) Reset()

func (*Backend) String

func (x *Backend) String() string

func (*Backend) Validate

func (m *Backend) Validate() error

Validate checks the field values on Backend with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Backend) ValidateAll

func (m *Backend) ValidateAll() error

ValidateAll checks the field values on Backend with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BackendMultiError, or nil if none found.

type BackendMultiError

type BackendMultiError []error

BackendMultiError is an error wrapping multiple validation errors returned by Backend.ValidateAll() if the designated constraints aren't met.

func (BackendMultiError) AllErrors

func (m BackendMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BackendMultiError) Error

func (m BackendMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type BackendValidationError

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

BackendValidationError is the validation error returned by Backend.Validate if the designated constraints aren't met.

func (BackendValidationError) Cause

func (e BackendValidationError) Cause() error

Cause function returns cause value.

func (BackendValidationError) Error

func (e BackendValidationError) Error() string

Error satisfies the builtin error interface

func (BackendValidationError) ErrorName

func (e BackendValidationError) ErrorName() string

ErrorName returns error name.

func (BackendValidationError) Field

func (e BackendValidationError) Field() string

Field function returns field value.

func (BackendValidationError) Key

func (e BackendValidationError) Key() bool

Key function returns key value.

func (BackendValidationError) Reason

func (e BackendValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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