derr

package
v0.6.76 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package derr builds gRPC errors carrying a devbox.v1.ErrorDetail, so callers can branch on the reason.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Code

func Code(err error) codes.Code

Code returns the gRPC code of err (Unknown for non-status errors).

func FileConflict

func FileConflict(path string) error

FileConflict is the typed FILE_CONFLICT error for a failed compare-and-swap write.

func InvalidAgentOrModel

func InvalidAgentOrModel(msg string) error

InvalidAgentOrModel is the typed INVALID_AGENT_OR_MODEL error.

func New

func New(code codes.Code, reason devboxv1.ErrorReason, msg string, md map[string]string) error

New returns a status error with an ErrorDetail.

func Reason

func Reason(err error) devboxv1.ErrorReason

Reason extracts the ErrorDetail reason from an error, or UNSPECIFIED.

func ThreadNotFound

func ThreadNotFound(id string) error

ThreadNotFound is the typed THREAD_NOT_FOUND error.

func Unsupported

func Unsupported(action string) error

Unsupported is the typed UNSUPPORTED error for a thread action the agent doesn't advertise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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