errorspb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_errors_error_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Error

type Error struct {

	// unique error code for this error
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// error description
	// in case of multiple errors, represents generic error message
	// with specifics in the errors field
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// map of sub errors if there are multiple errors to be passed back
	// ex:
	// "document_identifier": "empty identifer",
	// "next_identifier": "invalid next identifer",
	// "document_root": "invalid document root"
	Errors map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

Error contains details about the specific error

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() int32

func (*Error) GetErrors

func (x *Error) GetErrors() map[string]string

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect added in v1.0.0

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

Jump to

Keyboard shortcuts

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