errs

package
v0.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyLoggedIn = cli.NewExitError("You're already logged in!", -1)

ErrAlreadyLoggedIn represents an error where a user is attempting to login, but has an existing session.

View Source
var ErrAlreadyLoggedOut = cli.NewExitError("You're already logged out!", -1)

ErrAlreadyLoggedOut represents an error where a user is attempting to logut, but does not have an existing session.

View Source
var ErrInvalidResourceName = cli.NewExitError("You've provided an invalid resource name!", -1)

ErrInvalidResourceName represents an error where a user has provided an invalid resource name

View Source
var ErrMustLogin = cli.NewExitError("You must login to perform that command.", -1)

ErrMustLogin represents an error when a user must login to continue

View Source
var ErrNoApps = cli.NewExitError("There are no resources with apps", -1)

ErrNoApps represents an error where the action requires a resource app but none exist

View Source
var ErrNoPlans = cli.NewExitError("No plans found for this product", -1)

ErrNoPlans represents an error where no plans exist for the resource being created or updated

View Source
var ErrNoProducts = cli.NewExitError("No products found", -1)

ErrNoProducts represents an error where no products exist

View Source
var ErrNoProjects = cli.NewExitError("No projects found", -1)

ErrNoProjects represents an error when there are no projects found

View Source
var ErrNoProviders = cli.NewExitError("No providers found", -1)

ErrNoProviders represents an error where no providers exist

View Source
var ErrNoResources = cli.NewExitError("No resources found", -1)

ErrNoResources represents an error where no resources exist to preform some action on

View Source
var ErrNoTeams = cli.NewExitError("No teams found", -1)

ErrNoTeams represents an error where at least one team is required for an action, but none are available

View Source
var ErrNotLoggedIn = cli.NewExitError("You are not logged in!", -1)

ErrNotLoggedIn represents an error where a user must log in to continue

View Source
var ErrPlanNotFound = cli.NewExitError("The provided plan does not exist!", -1)

ErrPlanNotFound represents an error where the provided user's plan label does not exist.

View Source
var ErrProductNotFound = cli.NewExitError("The provided product does not exist!", -1)

ErrProductNotFound represents an error where the provided user's product label does not exist.

View Source
var ErrProjectNotFound = cli.NewExitError("The provided project does not exist!", -1)

ErrProjectNotFound represents an error where the provided project does not exist

View Source
var ErrRegionNotFound = cli.NewExitError("The provided region does not exist!", -1)

ErrRegionNotFound represents an error where the provided user's region label does not exist

View Source
var ErrResourceNotFound = cli.NewExitError("The provided resource does not exist!", -1)

ErrResourceNotFound represents an error where the provided user's resource label does not exist

View Source
var ErrSomethingWentHorriblyWrong = cli.NewExitError("Something went horribly wrong; please try again!", -1)

ErrSomethingWentHorriblyWrong represents an error that is completely out of our control and unexpected (such as a 500 from the API)

View Source
var ErrTeamNotFound = cli.NewExitError("The provided team does not exist!", -1)

ErrTeamNotFound represents an error where the provided user's team label does not exist

View Source
var ErrTooFewArgs = cli.NewExitError("You've provided too few command line arguments!", -1)

ErrTooFewArgs represents an error where a user has provided too few command line arguments

View Source
var ErrTooManyArgs = cli.NewExitError("You've provided too many command line arguments!", -1)

ErrTooManyArgs represents an error where a user has provided too many command line arguments

Functions

func NewErrorExitError

func NewErrorExitError(message string, err error) error

NewErrorExitError creates an ExitError with an appended error message

func NewStripeError

func NewStripeError(err error) error

NewStripeError marshals the stripe json error to a human error

func NewUsageExitError

func NewUsageExitError(ctx *cli.Context, err error) error

NewUsageExitError returns a new error that includes the usage string for the givne command along with the message from the given error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL