github.com/sarguru/terraform@v0.6.17-0.20160525232901-8fcdfd7e3dc9/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  }