mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 00:18:27 +00:00
20 lines
281 B
Go
20 lines
281 B
Go
|
|
package mock
|
||
|
|
|
||
|
|
type Error struct {
|
||
|
|
Message string
|
||
|
|
}
|
||
|
|
|
||
|
|
func (e *Error) Error() string {
|
||
|
|
return e.Message
|
||
|
|
}
|
||
|
|
|
||
|
|
// implement kolide.NotFoundError
|
||
|
|
func (e *Error) IsNotFound() bool {
|
||
|
|
return true
|
||
|
|
}
|
||
|
|
|
||
|
|
// implement kolide.AlreadyExistsError
|
||
|
|
func (e *Error) IsExists() bool {
|
||
|
|
return true
|
||
|
|
}
|