exception

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ThriftModule = &thriftreflect.ThriftModule{Name: "exception", Package: "go.uber.org/thriftrw/internal/envelope/exception", FilePath: "exception.thrift", SHA1: "88105bcd404d4aee06542af9452f7cf76647ae98", Raw: rawIDL}

Functions

This section is empty.

Types

type ExceptionType

type ExceptionType int32
const (
	ExceptionTypeUnknown               ExceptionType = 0
	ExceptionTypeUnknownMethod         ExceptionType = 1
	ExceptionTypeInvalidMessageType    ExceptionType = 2
	ExceptionTypeWrongMethodName       ExceptionType = 3
	ExceptionTypeBadSequenceID         ExceptionType = 4
	ExceptionTypeMissingResult         ExceptionType = 5
	ExceptionTypeInternalError         ExceptionType = 6
	ExceptionTypeProtocolError         ExceptionType = 7
	ExceptionTypeInvalidTransform      ExceptionType = 8
	ExceptionTypeInvalidProtocol       ExceptionType = 9
	ExceptionTypeUnsupportedClientType ExceptionType = 10
)

func ExceptionType_Values added in v1.3.0

func ExceptionType_Values() []ExceptionType

func (ExceptionType) Equals added in v1.2.0

func (v ExceptionType) Equals(rhs ExceptionType) bool

func (*ExceptionType) FromWire

func (v *ExceptionType) FromWire(w wire.Value) error

func (ExceptionType) MarshalJSON added in v0.5.0

func (v ExceptionType) MarshalJSON() ([]byte, error)

func (ExceptionType) String

func (v ExceptionType) String() string

func (ExceptionType) ToWire

func (v ExceptionType) ToWire() (wire.Value, error)

func (*ExceptionType) UnmarshalJSON added in v0.5.0

func (v *ExceptionType) UnmarshalJSON(text []byte) error

func (*ExceptionType) UnmarshalText added in v1.3.0

func (v *ExceptionType) UnmarshalText(value []byte) error

type TApplicationException

type TApplicationException struct {
	Message *string        `json:"message,omitempty"`
	Type    *ExceptionType `json:"type,omitempty"`
}

func (*TApplicationException) Equals added in v1.2.0

func (*TApplicationException) Error

func (v *TApplicationException) Error() string

func (*TApplicationException) FromWire

func (v *TApplicationException) FromWire(w wire.Value) error

func (*TApplicationException) String

func (v *TApplicationException) String() string

func (*TApplicationException) ToWire

func (v *TApplicationException) ToWire() (wire.Value, error)

Jump to

Keyboard shortcuts

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