github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+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 }