errors

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddComponentErrors

type AddComponentErrors struct {
	Errors []error
}

AddComponentErrors is a collection of errors that occurred while adding components to an entity.

func (AddComponentErrors) Error

func (e AddComponentErrors) Error() string

type ComponentNotFoundError

type ComponentNotFoundError struct {
	ID   string
	Name string
}

ComponentNotFoundError is returned when a component is not found.

func (ComponentNotFoundError) Error

func (e ComponentNotFoundError) Error() string

type ComponentTypeMismatchError

type ComponentTypeMismatchError struct {
	ID       string
	Name     string
	Expected string
	Actual   string
}

ComponentTypeMismatchError is an error type that is returned when the component type does not match the entity type.

func (ComponentTypeMismatchError) Error

type EmptySetError

type EmptySetError struct {
	ID string
}

EmptySetError is an error type that is returned when an empty set is attempted to be added to an entity .

func (EmptySetError) Error

func (e EmptySetError) Error() string

type EntityExistsError

type EntityExistsError struct {
	ID string
}

EntityExistsError is an error type that is returned when an entity with the given id already exists.

func (EntityExistsError) Error

func (e EntityExistsError) Error() string

type EntityNotFoundError

type EntityNotFoundError struct {
	ID string
}

EntityNotFoundError is an error type that is returned when an entity with the given id does not exist.

func (EntityNotFoundError) Error

func (e EntityNotFoundError) Error() string

type EntityTypeNotRegisteredError

type EntityTypeNotRegisteredError struct {
	Type string
}

EntityTypeNotRegisteredError is called when an entity type is not registered.

func (EntityTypeNotRegisteredError) Error

type HasComponentError

type HasComponentError struct {
	ID   string
	Name string
}

HasComponentError is an error type that is returned when the entity already has the given component.

func (HasComponentError) Error

func (e HasComponentError) Error() string

type MapHasKeyError

type MapHasKeyError struct {
	ID   string
	Name string
	Key  string
}

MapHasKeyError is an error type that is returned when the map already has the given key.

func (MapHasKeyError) Error

func (e MapHasKeyError) Error() string

type MapKeyMissingError

type MapKeyMissingError struct {
	ID   string
	Name string
	Key  string
}

func (MapKeyMissingError) Error

func (e MapKeyMissingError) Error() string

type MapKeyNotFoundError

type MapKeyNotFoundError struct {
	ID   string
	Name string
	Key  string
}

func (MapKeyNotFoundError) Error

func (e MapKeyNotFoundError) Error() string

type MapValueTypeMismatchError

type MapValueTypeMismatchError struct {
	ID       string
	Name     string
	Key      string
	Expected string
	Actual   string
}

MapValueTypeMismatchError is an error type that is returned when the map key does not match the entity type.

func (MapValueTypeMismatchError) Error

type MissingComponentError

type MissingComponentError struct {
	ID   string
	Name string
}

MissingComponentError is an error type that is returned when the entity does not have the given component.

func (MissingComponentError) Error

func (e MissingComponentError) Error() string

type SetValueTypeError

type SetValueTypeError struct {
	ID       string
	Name     string
	Expected string
	Actual   string
}

func (SetValueTypeError) Error

func (e SetValueTypeError) Error() string

Jump to

Keyboard shortcuts

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