errordetails

package
v2.0.110 Latest Latest
Warning

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

Go to latest
Published: Apr 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 HTTP

type HTTP struct {

	// HTTP Response Header.
	Header map[string]string `` /* 153-byte string literal not displayed */
	// HTTP Status Code.
	StatusCode int32 `protobuf:"varint,2,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	// contains filtered or unexported fields
}

HTTP is error detail for HTTP protocol.

func (*HTTP) Descriptor deprecated

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

Deprecated: Use HTTP.ProtoReflect.Descriptor instead.

func (*HTTP) GetHeader

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

func (*HTTP) GetStatusCode

func (x *HTTP) GetStatusCode() int32

func (*HTTP) ProtoMessage

func (*HTTP) ProtoMessage()

func (*HTTP) ProtoReflect

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

func (*HTTP) Reset

func (x *HTTP) Reset()

func (*HTTP) String

func (x *HTTP) String() string

func (*HTTP) Validate

func (m *HTTP) Validate() error

Validate checks the field values on HTTP 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 (*HTTP) ValidateAll

func (m *HTTP) ValidateAll() error

ValidateAll checks the field values on HTTP 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 HTTPMultiError, or nil if none found.

type HTTPMultiError

type HTTPMultiError []error

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

func (HTTPMultiError) AllErrors

func (m HTTPMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HTTPMultiError) Error

func (m HTTPMultiError) Error() string

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

type HTTPValidationError

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

HTTPValidationError is the validation error returned by HTTP.Validate if the designated constraints aren't met.

func (HTTPValidationError) Cause

func (e HTTPValidationError) Cause() error

Cause function returns cause value.

func (HTTPValidationError) Error

func (e HTTPValidationError) Error() string

Error satisfies the builtin error interface

func (HTTPValidationError) ErrorName

func (e HTTPValidationError) ErrorName() string

ErrorName returns error name.

func (HTTPValidationError) Field

func (e HTTPValidationError) Field() string

Field function returns field value.

func (HTTPValidationError) Key

func (e HTTPValidationError) Key() bool

Key function returns key value.

func (HTTPValidationError) Reason

func (e HTTPValidationError) 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