github.com/sleungcy-sap/cli@v7.1.0+incompatible/cf/errors/invalid_token_error.go (about)

     1  package errors
     2  
     3  import (
     4  	. "code.cloudfoundry.org/cli/cf/i18n"
     5  )
     6  
     7  type InvalidTokenError struct {
     8  	description string
     9  }
    10  
    11  func NewInvalidTokenError(description string) error {
    12  	return &InvalidTokenError{description: description}
    13  }
    14  
    15  func (err *InvalidTokenError) Error() string {
    16  	return T("Invalid auth token: ") + err.description
    17  }