github.com/Axway/agent-sdk@v1.1.101/pkg/apic/errors.go (about) 1 package apic 2 3 import "github.com/Axway/agent-sdk/pkg/util/errors" 4 5 // Errors hit when validating Amplify Central connectivity 6 var ( 7 ErrCentralConfig = errors.New(1100, "configuration error for Amplify Central") 8 ErrEnvironmentQuery = errors.New(1101, "error sending request to Amplify Central. Check configuration for CENTRAL_ENVIRONMENT") 9 ErrTeamNotFound = errors.Newf(1102, "could not find team (%s) in Amplify Central. Check configuration for CENTRAL_TEAM") 10 ErrNetwork = errors.New(1110, "error connecting to Amplify Central. Check docs.axway.com for more info on this error code") 11 ErrRequestQuery = errors.New(1120, "error making a request to Amplify") 12 ErrAuthenticationCall = errors.New(1130, "error getting authentication token. Check Amplify Central auth configuration (CENTRAL_AUTH_*) and network configuration for agent on docs.axway.com") 13 ErrAuthentication = errors.New(1131, "authentication token was not valid. Check Amplify Central auth configuration (CENTRAL_AUTH_*)") 14 ) 15 16 // Errors hit when calling different Amplify APIs 17 var ( 18 ErrNoAddressFound = errors.Newf(1139, "could not find the subscriber (%s) email address") 19 20 // Service body builder 21 ErrSetSpecEndPoints = errors.New(1160, "error getting endpoints for the API specification") 22 )