github.com/andresvia/terraform@v0.6.15-0.20160412045437-d51c75946785/helper/resource/error.go (about)

     1  package resource
     2  
     3  type NotFoundError struct {
     4  	LastError    error
     5  	LastRequest  interface{}
     6  	LastResponse interface{}
     7  	Message      string
     8  	Retries      int
     9  }
    10  
    11  func (e *NotFoundError) Error() string {
    12  	if e.Message != "" {
    13  		return e.Message
    14  	}
    15  
    16  	return "couldn't find resource"
    17  }