Newer
Older
package nucleus
import "fmt"
type ErrNilClient struct {
}
func (e *ErrNilClient) Error() string {
return fmt.Sprintf("client cannot be nil")
type ErrNotFound struct {
func (e *ErrNotFound) Error() string {
return fmt.Sprintf("%v not found", e.id)
}
type ErrAlreadyExists struct {
item interface{}
}
func (e *ErrAlreadyExists) Error() string {
return fmt.Sprintf("%v already exists", e.item)
type ErrInvalidTypeAssertion struct {
v interface{}
t interface{}
}
func (e ErrInvalidTypeAssertion) Error() string {
return fmt.Sprintf("%v does not implement %v", e.v, e.t)
}
type ErrUnsupportedPath struct {
p interface{}
}
func (e ErrUnsupportedPath) Error() string {
return fmt.Sprintf("path %v is not supported", e.p)
}