You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
361 B
17 lines
361 B
6 years ago
|
package errors
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
// NotFound error
|
||
|
type NotFound string
|
||
|
|
||
|
// Error message
|
||
|
func (nf NotFound) Error() string {
|
||
|
return fmt.Sprintf("can not find, %s", string(nf))
|
||
|
}
|
||
|
|
||
|
// NotFoundErrorf function creates an instance of BadRequestError
|
||
|
func NotFoundErrorf(format string, params ...interface{}) error {
|
||
|
return NotFound(fmt.Sprintf(format, params...))
|
||
|
}
|