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