otter-space-sdk/error/database.go
SoXX 63e74219ed
All checks were successful
Gitea Build Check / Build (push) Successful in 11m2s
feat(error): added first steps for custom errors
Signed-off-by: SoXX <soxx@fenpa.ws>
2024-06-25 16:02:08 +02:00

20 lines
335 B
Go

package error
type EntityAlreadyExists struct{}
type NoDataWritten struct{}
type NoDataFound struct{}
func (e *EntityAlreadyExists) Error() string {
return "EntityAlreadyExists error"
}
func (e *NoDataWritten) Error() string {
return "NoDataWritten error"
}
func (e *NoDataFound) Error() string {
return "NoDataFound error"
}