Skip to content
Snippets Groups Projects
errors.go 310 B
Newer Older
  • Learn to ignore specific revisions
  • package nucleus
    
    import "fmt"
    
    type ErrNilClient struct {
    }
    
    
    func (e *ErrNilClient) Error() string {
    
    	return fmt.Sprintf("client cannot be nil")
    
    }
    
    type ErrDeviceNotFound struct {
    	id interface{}
    }
    
    func (e *ErrDeviceNotFound) Error() string {
    	return fmt.Sprintf("device not found. requested id: %v", e.id)
    }