Documentation ¶
Index ¶
- Variables
- func DefaultErrorUnknown() *errors.Error
- func ErrorUnknown(format string, args ...interface{}) *errors.Error
- func IsUnknown(err error) bool
- type ERROR
- type README
- func (*README) Descriptor() ([]byte, []int)deprecated
- func (x *README) GetError() errors.ERROR
- func (*README) ProtoMessage()
- func (x *README) ProtoReflect() protoreflect.Message
- func (x *README) Reset()
- func (x *README) String() string
- func (m *README) Validate() error
- func (m *README) ValidateAll() error
- type READMEMultiError
- type READMEValidationError
Constants ¶
This section is empty.
Variables ¶
var ( ERROR_name = map[int32]string{ 0: "UNKNOWN", } ERROR_value = map[string]int32{ "UNKNOWN": 0, } )
Enum value maps for ERROR.
var ERROR_http_code = map[string]int{
"UNKNOWN": 500,
}
var File_api_uuid_service_v1_errors_uuid_error_v1_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type ERROR ¶
type ERROR int32
ERROR 复用node_id的错误码,详情请查看node_id的错误码;统一在node_id定义
const (
ERROR_UNKNOWN ERROR = 0 // 未知错误
)
func (ERROR) Descriptor ¶
func (ERROR) Descriptor() protoreflect.EnumDescriptor
func (ERROR) EnumDescriptor
deprecated
func (ERROR) Number ¶
func (x ERROR) Number() protoreflect.EnumNumber
func (ERROR) Type ¶
func (ERROR) Type() protoreflect.EnumType
type README ¶
type README struct { // error 复用node_id的错误码,详情请查看node_id的错误码;统一在node_id定义 Error errors.ERROR `protobuf:"varint,1,opt,name=error,proto3,enum=saas.api.nodeid.errorv1.ERROR" json:"error,omitempty"` // contains filtered or unexported fields }
func (*README) Descriptor
deprecated
func (*README) ProtoMessage ¶
func (*README) ProtoMessage()
func (*README) ProtoReflect ¶
func (x *README) ProtoReflect() protoreflect.Message
func (*README) Validate ¶
Validate checks the field values on README 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 (*README) ValidateAll ¶
ValidateAll checks the field values on README 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 READMEMultiError, or nil if none found.
type READMEMultiError ¶
type READMEMultiError []error
READMEMultiError is an error wrapping multiple validation errors returned by README.ValidateAll() if the designated constraints aren't met.
func (READMEMultiError) AllErrors ¶
func (m READMEMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (READMEMultiError) Error ¶
func (m READMEMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type READMEValidationError ¶
type READMEValidationError struct {
// contains filtered or unexported fields
}
READMEValidationError is the validation error returned by README.Validate if the designated constraints aren't met.
func (READMEValidationError) Cause ¶
func (e READMEValidationError) Cause() error
Cause function returns cause value.
func (READMEValidationError) Error ¶
func (e READMEValidationError) Error() string
Error satisfies the builtin error interface
func (READMEValidationError) ErrorName ¶
func (e READMEValidationError) ErrorName() string
ErrorName returns error name.
func (READMEValidationError) Field ¶
func (e READMEValidationError) Field() string
Field function returns field value.
func (READMEValidationError) Key ¶
func (e READMEValidationError) Key() bool
Key function returns key value.
func (READMEValidationError) Reason ¶
func (e READMEValidationError) Reason() string
Reason function returns reason value.