Documentation ¶
Index ¶
- Variables
- type SourceError
- func (*SourceError) Descriptor() ([]byte, []int)deprecated
- func (x *SourceError) GetMetadata() *base.ExtendAttribute
- func (x *SourceError) GetTemporary() bool
- func (*SourceError) ProtoMessage()
- func (x *SourceError) ProtoReflect() protoreflect.Message
- func (x *SourceError) Reset()
- func (x *SourceError) String() string
- func (m *SourceError) Validate() error
- type SourceErrorValidationError
- func (e SourceErrorValidationError) Cause() error
- func (e SourceErrorValidationError) Error() string
- func (e SourceErrorValidationError) ErrorName() string
- func (e SourceErrorValidationError) Field() string
- func (e SourceErrorValidationError) Key() bool
- func (e SourceErrorValidationError) Reason() string
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 ¶
func (e SourceErrorValidationError) Cause() error
Cause function returns cause value.
func (SourceErrorValidationError) Error ¶
func (e SourceErrorValidationError) Error() string
Error satisfies the builtin error interface
func (SourceErrorValidationError) ErrorName ¶
func (e SourceErrorValidationError) ErrorName() string
ErrorName returns error name.
func (SourceErrorValidationError) Field ¶
func (e SourceErrorValidationError) Field() string
Field function returns field value.
func (SourceErrorValidationError) Key ¶
func (e SourceErrorValidationError) Key() bool
Key function returns key value.
func (SourceErrorValidationError) Reason ¶
func (e SourceErrorValidationError) Reason() string
Reason function returns reason value.
Click to show internal directories.
Click to hide internal directories.