mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-09-14 05:20:11 +00:00
15 lines
349 B
Go
15 lines
349 B
Go
package database
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/infrastructure/db/database"
|
|
)
|
|
|
|
// ErrNotFound denotes that the requested item was not
|
|
// found in the database.
|
|
var ErrNotFound = database.ErrNotFound
|
|
|
|
// IsNotFoundError checks whether an error is an ErrNotFound.
|
|
func IsNotFoundError(err error) bool {
|
|
return database.IsNotFoundError(err)
|
|
}
|