errors

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeError                = "error"
	TypeModelNotFound        = "model_not_found"
	TypeRequestRetryExceeded = "request_retry_exceeded"
)
View Source
const (
	MessageError                            = "error"
	MessageRuntimeNotReady                  = "runtime not ready"
	MessageWrongNumberOfArgumentsGet        = "wrong number of arguments for 'get' command"
	MessageWrongNumberOfArgumentsRPOP       = "wrong number of arguments for 'rpop' command"
	MessageInvalidRequestJSON               = "invalid request json"
	MessageUnsupportedType                  = "unsupported type"
	MessageMissingAuthIndex                 = "missing auth_index"
	MessageAuthNotFound                     = "auth not found"
	MessageNoDispatchResult                 = "no dispatch result"
	MessageNoAuthAvailable                  = "no auth available"
	MessageMissingModel                     = "missing model"
	MessageMissingRequiredCredentialHeaders = "missing required credential headers"
	MessageInvalidAPIKey                    = "invalid api key"
	MessageRequestRetryExceeded             = "request retry limit exceeded"

	MessageModelDoesNotExistFmt = "model %s does not exist"
)

Variables

This section is empty.

Functions

func SplitRedisErrorMessage

func SplitRedisErrorMessage(message string) (string, string)

SplitRedisErrorMessage converts "type: message" formatted strings into structured (type, message) pairs for RESP JSON error responses.

It intentionally only treats the prefix as a type when it looks like a machine-readable code (lowercase snake_case).

Types

This section is empty.

Jump to

Keyboard shortcuts

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