github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/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  }