Documentation ¶
Index ¶
- func Cause(err error) error
- func ConvertGRPCStatusError(err error) error
- func ConvertTwirpError(err error) twirp.Error
- func GetErrorMessages(e error) string
- func GetErrorMessagesWithStack(e error) string
- type ErrorFormatter
- type ErrorID
- type ErrorStacktrace
- type ErrorWithGRPCCode
- type ErrorWithHTTPStatus
- type ErrorWithID
- type ErrorWithTwirpCode
- type GRPCError
- type HTTPError
- type RZError
- type StackFrame
- type StackTracer
- type TwirpError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertGRPCStatusError ¶
func ConvertTwirpError ¶ added in v1.1.0
func GetErrorMessages ¶
Types ¶
type ErrorFormatter ¶
type ErrorStacktrace ¶
type ErrorStacktrace struct {
// contains filtered or unexported fields
}
func NewErrorWithStackTrace ¶
func NewErrorWithStackTrace(stackLen int, callerLen int) *ErrorStacktrace
func (*ErrorStacktrace) GetStack ¶
func (e *ErrorStacktrace) GetStack() string
func (*ErrorStacktrace) GetStackAsJSON ¶
func (e *ErrorStacktrace) GetStackAsJSON() interface{}
func (*ErrorStacktrace) StackAddrs ¶
func (e *ErrorStacktrace) StackAddrs() string
func (*ErrorStacktrace) StackFrames ¶
func (e *ErrorStacktrace) StackFrames() []StackFrame
type ErrorWithGRPCCode ¶
type ErrorWithGRPCCode struct {
// contains filtered or unexported fields
}
func NewErrorWithgRPCCode ¶
func NewErrorWithgRPCCode(grpcCode codes.Code) *ErrorWithGRPCCode
func (*ErrorWithGRPCCode) GRPCCode ¶
func (err *ErrorWithGRPCCode) GRPCCode() codes.Code
type ErrorWithHTTPStatus ¶
type ErrorWithHTTPStatus struct {
// contains filtered or unexported fields
}
func NewErrorWithHTTPStatus ¶
func NewErrorWithHTTPStatus(httpStatus int) *ErrorWithHTTPStatus
func (*ErrorWithHTTPStatus) StatusCode ¶
func (err *ErrorWithHTTPStatus) StatusCode() int
type ErrorWithID ¶
type ErrorWithID struct {
// contains filtered or unexported fields
}
func NewErrorWithID ¶
func NewErrorWithID(id string) *ErrorWithID
func (*ErrorWithID) ID ¶
func (err *ErrorWithID) ID() string
type ErrorWithTwirpCode ¶ added in v1.1.0
type ErrorWithTwirpCode struct {
// contains filtered or unexported fields
}
func NewErrorWithTwirpCode ¶ added in v1.1.0
func NewErrorWithTwirpCode(errCode twirp.ErrorCode) *ErrorWithTwirpCode
func (*ErrorWithTwirpCode) ErrorCode ¶ added in v1.1.0
func (err *ErrorWithTwirpCode) ErrorCode() twirp.ErrorCode
type RZError ¶
type RZError struct {
// contains filtered or unexported fields
}
func NewRZError ¶
func (*RZError) GetFormattedMessage ¶
func (*RZError) GetMessage ¶
type StackFrame ¶
Represents a single stack frame.
type StackTracer ¶
type StackTracer interface { Error() string StackAddrs() string StackFrames() []StackFrame GetStack() string GetStackAsJSON() interface{} }
type TwirpError ¶ added in v1.1.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.