ierror

package
v0.5.2-edge.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResourceNotFound = &IggyError{
		Code:    20,
		Message: "resource_not_found",
	}
	InvalidConfiguration = &IggyError{
		Code:    2,
		Message: "invalid_configuration",
	}
	InvalidIdentifier = &IggyError{
		Code:    6,
		Message: "invalid_identifier",
	}
	StreamIdNotFound = &IggyError{
		Code:    1009,
		Message: "stream_id_not_found",
	}
	TopicIdNotFound = &IggyError{
		Code:    2010,
		Message: "topic_id_not_found",
	}
	InvalidMessagesCount = &IggyError{
		Code:    4009,
		Message: "invalid_messages_count",
	}
	InvalidMessagePayloadLength = &IggyError{
		Code:    4025,
		Message: "invalid_message_payload_length",
	}
	TooBigUserMessagePayload = &IggyError{
		Code:    4022,
		Message: "too_big_message_payload",
	}
	TooBigUserHeaders = &IggyError{
		Code:    4017,
		Message: "too_big_headers_payload",
	}
	ConsumerGroupIdNotFound = &IggyError{
		Code:    5000,
		Message: "consumer_group_not_found",
	}
)

Functions

func CustomError

func CustomError(message string) error

func MapFromCode

func MapFromCode(code int) error

func TextTooLong

func TextTooLong(message string) error

func TranslateErrorCode

func TranslateErrorCode(code int) string

Types

type IggyError

type IggyError struct {
	Code    int
	Message string
}

func (*IggyError) Error

func (e *IggyError) Error() string

Jump to

Keyboard shortcuts

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