errors

package
v0.0.0-...-60f4931 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextError

type ContextError struct {
	Error                *Error   `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	Context              string   `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ContextError) Descriptor

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

func (*ContextError) GetContext

func (m *ContextError) GetContext() string

func (*ContextError) GetError

func (m *ContextError) GetError() *Error

func (*ContextError) ProtoMessage

func (*ContextError) ProtoMessage()

func (*ContextError) Reset

func (m *ContextError) Reset()

func (*ContextError) String

func (m *ContextError) String() string

func (*ContextError) XXX_DiscardUnknown

func (m *ContextError) XXX_DiscardUnknown()

func (*ContextError) XXX_Marshal

func (m *ContextError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContextError) XXX_Merge

func (m *ContextError) XXX_Merge(src proto.Message)

func (*ContextError) XXX_Size

func (m *ContextError) XXX_Size() int

func (*ContextError) XXX_Unmarshal

func (m *ContextError) XXX_Unmarshal(b []byte) error

type Error

type Error struct {
	ContextError  *ContextError  `protobuf:"bytes,1,opt,name=context_error,json=contextError,proto3" json:"context_error,omitempty"`
	FriendlyError *FriendlyError `protobuf:"bytes,2,opt,name=friendly_error,json=friendlyError,proto3" json:"friendly_error,omitempty"`
	// `text` is the default case. If none of the above fields are defined, then
	// it's assumed that the error isn't a special Blimp type, and can be created
	// with errors.New.
	Text                 string   `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Error is a union of possible error types. Each field corresponds to a type in our Go code.

func (*Error) Descriptor

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

func (*Error) GetContextError

func (m *Error) GetContextError() *ContextError

func (*Error) GetFriendlyError

func (m *Error) GetFriendlyError() *FriendlyError

func (*Error) GetText

func (m *Error) GetText() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

func (*Error) XXX_DiscardUnknown

func (m *Error) XXX_DiscardUnknown()

func (*Error) XXX_Marshal

func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Error) XXX_Merge

func (m *Error) XXX_Merge(src proto.Message)

func (*Error) XXX_Size

func (m *Error) XXX_Size() int

func (*Error) XXX_Unmarshal

func (m *Error) XXX_Unmarshal(b []byte) error

type FriendlyError

type FriendlyError struct {
	FriendlyMessage      string   `protobuf:"bytes,1,opt,name=friendly_message,json=friendlyMessage,proto3" json:"friendly_message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FriendlyError) Descriptor

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

func (*FriendlyError) GetFriendlyMessage

func (m *FriendlyError) GetFriendlyMessage() string

func (*FriendlyError) ProtoMessage

func (*FriendlyError) ProtoMessage()

func (*FriendlyError) Reset

func (m *FriendlyError) Reset()

func (*FriendlyError) String

func (m *FriendlyError) String() string

func (*FriendlyError) XXX_DiscardUnknown

func (m *FriendlyError) XXX_DiscardUnknown()

func (*FriendlyError) XXX_Marshal

func (m *FriendlyError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FriendlyError) XXX_Merge

func (m *FriendlyError) XXX_Merge(src proto.Message)

func (*FriendlyError) XXX_Size

func (m *FriendlyError) XXX_Size() int

func (*FriendlyError) XXX_Unmarshal

func (m *FriendlyError) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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