apierrors

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code string
const (
	CodeAuthenticationRequired Code = "AUTHENTICATION_REQUIRED"
	CodeTenantBlocked          Code = "TENANT_BLOCKED"
	CodeForbidden              Code = "FORBIDDEN"
	CodeInternalServerError    Code = "INTERNAL_SERVER_ERROR"
)

func (Code) Status

func (c Code) Status() int32

func (Code) String

func (c Code) String() string

type Error

type Error struct {
	Code    Code   `json:"code"`
	Status  int32  `json:"status"`
	Message string `json:"message,omitempty"`
}

func New

func New(code Code, message string) Error

Jump to

Keyboard shortcuts

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