grpczerrors

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_znow_core_commonpb_message_proto protoreflect.FileDescriptor

Functions

func ExtractZNOWError

func ExtractZNOWError(err error) (c codes.Code, msg, id string, ok bool)

func ZNOWToGRPCError

func ZNOWToGRPCError(err error) error

Types

type ErrorDetail

type ErrorDetail struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorDetail) Descriptor deprecated

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

Deprecated: Use ErrorDetail.ProtoReflect.Descriptor instead.

func (*ErrorDetail) GetId

func (x *ErrorDetail) GetId() string

func (*ErrorDetail) GetMessage

func (x *ErrorDetail) GetMessage() string

func (*ErrorDetail) MarshalToSizedBufferVT

func (m *ErrorDetail) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ErrorDetail) MarshalToVT

func (m *ErrorDetail) MarshalToVT(dAtA []byte) (int, error)

func (*ErrorDetail) MarshalVT

func (m *ErrorDetail) MarshalVT() (dAtA []byte, err error)

func (*ErrorDetail) ProtoMessage

func (*ErrorDetail) ProtoMessage()

func (*ErrorDetail) ProtoReflect

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

func (*ErrorDetail) Reset

func (x *ErrorDetail) Reset()

func (*ErrorDetail) SizeVT

func (m *ErrorDetail) SizeVT() (n int)

func (*ErrorDetail) String

func (x *ErrorDetail) String() string

func (*ErrorDetail) UnmarshalVT

func (m *ErrorDetail) UnmarshalVT(dAtA []byte) error

type LocalizedMessage

type LocalizedMessage struct {
	Key              string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	LocalizedMessage string `protobuf:"bytes,2,opt,name=localized_message,json=localizedMessage,proto3" json:"localized_message,omitempty"`
	// contains filtered or unexported fields
}

func (*LocalizedMessage) Descriptor deprecated

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

Deprecated: Use LocalizedMessage.ProtoReflect.Descriptor instead.

func (*LocalizedMessage) GetKey

func (x *LocalizedMessage) GetKey() string

func (*LocalizedMessage) GetLocalizedMessage

func (x *LocalizedMessage) GetLocalizedMessage() string

func (*LocalizedMessage) MarshalToSizedBufferVT

func (m *LocalizedMessage) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*LocalizedMessage) MarshalToVT

func (m *LocalizedMessage) MarshalToVT(dAtA []byte) (int, error)

func (*LocalizedMessage) MarshalVT

func (m *LocalizedMessage) MarshalVT() (dAtA []byte, err error)

func (*LocalizedMessage) ProtoMessage

func (*LocalizedMessage) ProtoMessage()

func (*LocalizedMessage) ProtoReflect

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

func (*LocalizedMessage) Reset

func (x *LocalizedMessage) Reset()

func (*LocalizedMessage) SizeVT

func (m *LocalizedMessage) SizeVT() (n int)

func (*LocalizedMessage) String

func (x *LocalizedMessage) String() string

func (*LocalizedMessage) UnmarshalVT

func (m *LocalizedMessage) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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