{"modulePath":"github.com/launchdarkly/ldcli","version":"v1.18.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Variables\n\n```go\nvar ErrInvalidBaseURI = NewError(fmt.Sprintf(\"%s is invalid\", cliflags.BaseURIFlag))\n```\n\n## Functions\n\n```go\nfunc AccessTokenInvalidErrMessage(baseURI string) string\n```\n\n```go\nfunc NewError(message string) error\n```\n\n```go\nfunc NewErrorWrapped(message string, underlying error) error\n```\n\n```go\nfunc NewLDAPIError(err error) error\n```\nNewLDAPIError converts the error returned from API calls to LaunchDarkly to have a consistent Error() JSON structure.\n\n## Types\n\n```go\ntype APIError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAPIError(body []byte, err error, model interface{}) APIError\n```\n\n```go\nfunc (e APIError) Body() []byte\n```\n\n```go\nfunc (e APIError) Error() string\n```\n\n```go\nfunc (e APIError) Model() interface{}\n```\n\n```go\ntype Error struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (e Error) Error() string\n```\n\n```go\nfunc (e Error) Is(err error) bool\n```\n\n```go\nfunc (e Error) Unwrap() error\n```\n\n```go\ntype LDAPIError interface {\n\tBody() []byte\n\tError() string\n\tModel() interface{}\n}\n```\nLDAPIError is an error from the LaunchDarkly API client.\n\n","path":"github.com/launchdarkly/ldcli/internal/errors","name":"errors","synopsis":"","isRedistributable":true}
