errors

package
v0.0.0-...-b839e02 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvalidAction

type InvalidAction struct {
	// contains filtered or unexported fields
}

InvalidAction is the error for an invalid action for a SabrePayload

func NewInvalidActionError

func NewInvalidActionError(action string, expected []string) InvalidAction

NewInvalidActionError returns a new InvalidAction provided the field name {string}

func (InvalidAction) Error

func (m InvalidAction) Error() string

Error returns the error {string} for a InvalidAction

type MissingFieldError

type MissingFieldError struct {
	// contains filtered or unexported fields
}

MissingFieldError is the error for a missing field

func NewMissingFieldError

func NewMissingFieldError(field string) MissingFieldError

NewMissingFieldError returns a new MissingFieldError provided the field name {string}

func (MissingFieldError) Error

func (m MissingFieldError) Error() string

Error returns the error {string} for a MissingFieldError

type ProtobufEncodingError

type ProtobufEncodingError struct {
	// contains filtered or unexported fields
}

ProtobufEncodingError is the error for when a protobuf fails encoding

func NewProtobufEncodingError

func NewProtobufEncodingError(err error) ProtobufEncodingError

NewProtobufEncodingError returns a new ProtobufEncodingError provided the error from proto library

func (ProtobufEncodingError) Error

func (p ProtobufEncodingError) Error() string

Error returns the error {string} for a ProtobufEncodingError

Jump to

Keyboard shortcuts

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