mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 00:45:19 +00:00
5fb5995b83
* Remove unneeded interfaces * Remove unused code
20 lines
301 B
Go
20 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
|
|
}
|