errordetails

package
v2.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_rpc_errordetails_error_details_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SourceError

type SourceError struct {
	Temporary bool `protobuf:"varint,1,opt,name=temporary,proto3" json:"temporary,omitempty"`
	// source response metadata, eg: HTTP Status Code, HTTP Status, HTTP Header
	Metadata *base.ExtendAttribute `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*SourceError) Descriptor deprecated

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

Deprecated: Use SourceError.ProtoReflect.Descriptor instead.

func (*SourceError) GetMetadata

func (x *SourceError) GetMetadata() *base.ExtendAttribute

func (*SourceError) GetTemporary

func (x *SourceError) GetTemporary() bool

func (*SourceError) ProtoMessage

func (*SourceError) ProtoMessage()

func (*SourceError) ProtoReflect

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

func (*SourceError) Reset

func (x *SourceError) Reset()

func (*SourceError) String

func (x *SourceError) String() string

func (*SourceError) Validate

func (m *SourceError) Validate() error

Validate checks the field values on SourceError with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SourceErrorValidationError

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

SourceErrorValidationError is the validation error returned by SourceError.Validate if the designated constraints aren't met.

func (SourceErrorValidationError) Cause

Cause function returns cause value.

func (SourceErrorValidationError) Error

Error satisfies the builtin error interface

func (SourceErrorValidationError) ErrorName

func (e SourceErrorValidationError) ErrorName() string

ErrorName returns error name.

func (SourceErrorValidationError) Field

Field function returns field value.

func (SourceErrorValidationError) Key

Key function returns key value.

func (SourceErrorValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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