github.com/Venafi/vcert/v5@v5.10.2/pkg/verror/errors.go (about)

     1  package verror
     2  
     3  import "fmt"
     4  
     5  var (
     6  	VcertError                      = fmt.Errorf("vcert error")
     7  	ServerError                     = fmt.Errorf("%w: server error", VcertError)
     8  	ServerUnavailableError          = fmt.Errorf("%w: server unavailable", ServerError)
     9  	ServerTemporaryUnavailableError = fmt.Errorf("%w: temporary", ServerUnavailableError)
    10  	ServerBadDataResponce           = fmt.Errorf("%w: server returns 400 code. your request has problems", ServerError)
    11  	UserDataError                   = fmt.Errorf("%w: your data contains problems", VcertError)
    12  	PolicyValidationError           = fmt.Errorf("%w: policy doesn't match request", VcertError)
    13  	CertificateCheckError           = fmt.Errorf("%w: request doesn't match certificate", UserDataError)
    14  	AuthError                       = fmt.Errorf("%w: auth error", UserDataError)
    15  	UnauthorizedError               = fmt.Errorf("%w: unauthorized or expired access credentials", ServerError)
    16  	ZoneNotFoundError               = fmt.Errorf("%w: zone not found", UserDataError)
    17  	ApplicationNotFoundError        = fmt.Errorf("%w: application not found", UserDataError)
    18  	// certificate search errors
    19  	NoCertificateFoundError                 = fmt.Errorf("no certificate with matching criteria found")
    20  	NoCertificateWithMatchingZoneFoundError = fmt.Errorf("no certificate with matching zone found")
    21  )