changes...

This commit is contained in:
KamilM1205 2025-09-22 22:12:49 +04:00
parent 41944884b4
commit ab4b53fd40
26 changed files with 600 additions and 51 deletions

View file

@ -0,0 +1,15 @@
package errors
type DBError struct {
msg string
}
func NewDBError(msg string) DBError {
return DBError{
msg: msg,
}
}
func (e *DBError) Error() string {
return e.msg
}

View file

@ -0,0 +1,15 @@
package errors
type NotFoundError struct {
msg string
}
func NewNotFoundError(msg string) *NotFoundError {
return &NotFoundError{
msg: msg,
}
}
func (e *NotFoundError) Error() string {
return e.msg
}