errors

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: GPL-3.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 InvalidImageFileNameError

type InvalidImageFileNameError struct {
	// contains filtered or unexported fields
}

InvalidImageFileNameError is returned when a filename of an image could not be interpreted.

func NewInvalidImageFileNameError

func NewInvalidImageFileNameError(fileName string) *InvalidImageFileNameError

func (*InvalidImageFileNameError) Error

func (e *InvalidImageFileNameError) Error() string

type LoadImageError

type LoadImageError struct {
	// contains filtered or unexported fields
}

LoadImageError is returned when an image was unable to be loaded through the loader.

func NewLoadImageError

func NewLoadImageError(modName, imagePath string, originalError error) *LoadImageError

func (*LoadImageError) Error

func (e *LoadImageError) Error() string

func (*LoadImageError) Unwrap

func (e *LoadImageError) Unwrap() error

type RenderError

type RenderError struct {
	// contains filtered or unexported fields
}

RenderError is the error wrapper returned by the renderer when any underlying error occurs while rendering an icon.

func NewRenderError

func NewRenderError(icon transfer.RenderIcon, originalError error) *RenderError

func (*RenderError) Error

func (e *RenderError) Error() string

func (*RenderError) Icon

func (e *RenderError) Icon() transfer.RenderIcon

func (*RenderError) Unwrap

func (e *RenderError) Unwrap() error

type UnknownModError

type UnknownModError struct {
	// contains filtered or unexported fields
}

UnknownModError is returned when the loader encounters an unknown mod.

func NewUnknownModError

func NewUnknownModError(modName string) *UnknownModError

func (*UnknownModError) Error

func (e *UnknownModError) Error() string

Jump to

Keyboard shortcuts

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