github.com/cloudfoundry/cli@v7.1.0+incompatible/command/translatableerror/unauthorized_to_perform_action_error.go (about)

     1  package translatableerror
     2  
     3  type UnauthorizedToPerformActionError struct {
     4  }
     5  
     6  func (UnauthorizedToPerformActionError) Error() string {
     7  	return "You are not authorized to perform the requested action."
     8  }
     9  
    10  func (e UnauthorizedToPerformActionError) Translate(translate func(string, ...interface{}) string) string {
    11  	return translate(e.Error(), nil)
    12  }