errdefs

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package errdefs provides error types for common PatrolBot errors that warrant special handling in the CLI or bot server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigError

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

ConfigError indicates a failure to run a command due to invalid configuration.

func NewConfigError

func NewConfigError(causes ...string) *ConfigError

NewConfigError creates a new ConfigError.

func (ConfigError) Error

func (e ConfigError) Error() string

type UsageError

type UsageError string

UsageError indicates an error resulting from incorrect command usage by the user.

func (UsageError) Error

func (e UsageError) Error() string

Jump to

Keyboard shortcuts

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