Files
etcd/store/error.go
2013-07-12 08:41:28 -07:00

23 lines
383 B
Go

package store
import (
"fmt"
)
type NotFoundError string
func (e NotFoundError) Error() string {
return fmt.Sprintf("Key %s Not Found", string(e))
}
type NotFile string
func (e NotFile) Error() string {
return fmt.Sprintf("Try to set value to a dir %s", string(e))
}
type TestFail string
func (e TestFail) Error() string {
return fmt.Sprintf("Test %s fails", string(e))
}