Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrHeroNotExist ¶
type ErrHeroNotExist struct {
// contains filtered or unexported fields
}
ErrHeroNotExist custom error for Hero handlers it tells that requested hero is not existing
func NewErrHeroNotExist ¶
func NewErrHeroNotExist(message string) *ErrHeroNotExist
NewErrHeroNotExist returns pointer with error message to ErrHeroNotExist
func (*ErrHeroNotExist) Error ¶
func (e *ErrHeroNotExist) Error() string
type ErrNothingToDelete ¶
type ErrNothingToDelete struct {
// contains filtered or unexported fields
}
ErrNothingToDelete custom error type for Hero handlers it tells that hero which requested to be deleted not exists
func NewErrNothingToDelete ¶
func NewErrNothingToDelete(message string) *ErrNothingToDelete
NewErrNothingToDelete returns pointer with error message to ErrNothingToDelete
func (*ErrNothingToDelete) Error ¶
func (e *ErrNothingToDelete) Error() string
Click to show internal directories.
Click to hide internal directories.