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