opentofu/helper/resource/error.go
2016-03-21 16:47:50 +00:00

18 lines
281 B
Go

package resource
type NotFoundError struct {
LastError error
LastRequest interface{}
LastResponse interface{}
Message string
Retries int
}
func (e *NotFoundError) Error() string {
if e.Message != "" {
return e.Message
}
return "couldn't find resource"
}