Documentation ¶
Index ¶
- Variables
- type Backend
- func (*Backend) Descriptor() ([]byte, []int)deprecated
- func (x *Backend) GetHeader() map[string]string
- func (x *Backend) GetMessage() string
- func (x *Backend) GetStatusCode() int32
- func (*Backend) ProtoMessage()
- func (x *Backend) ProtoReflect() protoreflect.Message
- func (x *Backend) Reset()
- func (x *Backend) String() string
- func (m *Backend) Validate() error
- func (m *Backend) ValidateAll() error
- type BackendMultiError
- type BackendValidationError
Constants ¶
This section is empty.
Variables ¶
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) GetMessage ¶
func (*Backend) GetStatusCode ¶
func (*Backend) ProtoMessage ¶
func (*Backend) ProtoMessage()
func (*Backend) ProtoReflect ¶
func (x *Backend) ProtoReflect() protoreflect.Message
func (*Backend) Validate ¶
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 ¶
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.