github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/cf/errors/gateway_error.go (about) 1 package errors 2 3 import ( 4 "fmt" 5 6 . "code.cloudfoundry.org/cli/cf/i18n" 7 ) 8 9 type AsyncTimeoutError struct { 10 url string 11 } 12 13 func NewAsyncTimeoutError(url string) error { 14 return &AsyncTimeoutError{url: url} 15 } 16 17 func (err *AsyncTimeoutError) Error() string { 18 return fmt.Sprintf(T("Error: timed out waiting for async job '{{.ErrURL}}' to finish", 19 map[string]interface{}{"ErrURL": err.url})) 20 }