github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/actor/actionerror/route_not_found_error.go (about) 1 package actionerror 2 3 import "fmt" 4 5 // RouteNotFoundError is returned when a route cannot be found 6 type RouteNotFoundError struct { 7 Host string 8 DomainGUID string 9 Path string 10 Port int 11 } 12 13 func (e RouteNotFoundError) Error() string { 14 if e.Path != "" { 15 return fmt.Sprintf("Route with host %s, domain guid %s, and path %s not found", e.Host, e.DomainGUID, e.Path) 16 } 17 return fmt.Sprintf("Route with host %s and domain guid %s not found", e.Host, e.DomainGUID) 18 }