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)