errgen

package
v0.15.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tag

type Tag string

Tag represents an EdgeDB error tag.

func ParseTags

func ParseTags(data [][]interface{}) []Tag

ParseTags returns a list of unique tags.

func (Tag) Identifyer

func (t Tag) Identifyer() string

Identifyer returns the MixedCaps version of the tag.

type Type

type Type struct {
	Code      [4]uint8
	Name      string
	Ancestors []string
	Tags      []Tag
}

Type represents and EdgeDB error type.

func ParseTypes

func ParseTypes(data [][]interface{}) []*Type

ParseTypes extracts the error types from edb gen-errors-json --client output

func (*Type) PrivateName

func (t *Type) PrivateName() string

PrivateName returns the private go name for this error type.

Jump to

Keyboard shortcuts

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