errors

package
v0.0.0-...-de2f53b Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrBookNotFound

type ErrBookNotFound struct {
	Id int
}

ErrBookNotFound represents an error when a book is not found in the database.

func (ErrBookNotFound) Error

func (e ErrBookNotFound) Error() string

type ErrDuplicateBook

type ErrDuplicateBook struct {
	Title  string
	Author string
}

ErrDuplicateBook represents an error when a book with the same title and author already exists.

func (ErrDuplicateBook) Error

func (e ErrDuplicateBook) Error() string

Jump to

Keyboard shortcuts

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