mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
19 lines
301 B
Go
19 lines
301 B
Go
package mock
|
|
|
|
type Error struct {
|
|
Message string
|
|
}
|
|
|
|
func (e *Error) Error() string {
|
|
return e.Message
|
|
}
|
|
|
|
// IsNotFound implements fleet.NotFoundError
|
|
func (e *Error) IsNotFound() bool {
|
|
return true
|
|
}
|
|
|
|
// IsExists implements fleet.AlreadyExistsError
|
|
func (e *Error) IsExists() bool {
|
|
return true
|
|
}
|