brokeerrors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package brokeerrors provides error definitions for the GoBroke message broker system. These errors are used throughout the system to indicate specific failure conditions and error states.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorClientAlreadyExists indicates an attempt to register a client that is already registered.
	ErrorClientAlreadyExists = errors.New("client already exists")

	// ErrorClientDoesNotExist indicates an attempt to access a client that is not registered.
	ErrorClientDoesNotExist = errors.New("client does not exist")

	// ErrorClientCouldNotBeDisconnected indicates a failure to properly disconnect a client.
	ErrorClientCouldNotBeDisconnected = errors.New("client could not be disconnected")
)

Client-related errors

View Source
var (
	// ErrorLogicAlreadyExists indicates an attempt to register logic that is already registered.
	ErrorLogicAlreadyExists = errors.New("logic already exists")

	// ErrorCouldNotStartProcessor indicates a failure to start a message processor.
	ErrorCouldNotStartProcessor = errors.New("could not start processor")

	// ErrorProcessorAlreadyExists indicates an attempt to start a processor that is already running.
	ErrorProcessorAlreadyExists = errors.New("processor already exists")
)

Logic and processor-related errors

View Source
var (
	// ErrorCouldNotCreateServer indicates a failure during server creation.
	ErrorCouldNotCreateServer = errors.New("could not create server")

	// ErrorNoEndpointProvided indicates an attempt to create a server without an endpoint.
	ErrorNoEndpointProvided = errors.New("no endpoint provided")
)

Server initialization errors

View Source
var (
	// Error tag does not exist
	ErrorTagDoesNotExist = errors.New("tag does not exist")
)

Message related errors

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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