Documentation ¶
Index ¶
- Variables
- func CombineErrors(errors ...error) error
- func CombineErrorsWithPrefix(prefix string, errors ...error) error
- func DecodePgError(err error) error
- func DiagsToError(prefix string, diags tfdiags.Diagnostics) error
- func FailOnError(err error)
- func FailOnErrorWithMessage(err error, message string)
- func HandleCancelError(err error) error
- func HandleQueryTimeoutError(err error) error
- func IsCancelledError(err error) bool
- func IsContextCanceled(ctx context.Context) bool
- func IsContextCancelledError(err error) bool
- func PrefixError(err error, prefix string) error
- func ShowError(ctx context.Context, err error)
- func ShowErrorWithMessage(ctx context.Context, err error, message string)
- func ShowWarning(warning string)
- func TransformErrorToSteampipe(err error) error
- func WrapError(err error) error
Constants ¶
This section is empty.
Variables ¶
View Source
var MissingCloudTokenError = fmt.Errorf("Not authenticated for Steampipe Cloud.\nPlease run %s or setup a token.", constants.Bold("steampipe login"))
Functions ¶
func CombineErrors ¶
func CombineErrorsWithPrefix ¶
func DecodePgError ¶
func DiagsToError ¶
func DiagsToError(prefix string, diags tfdiags.Diagnostics) error
DiagsToError converts tfdiags diags into an error
func FailOnError ¶
func FailOnError(err error)
func FailOnErrorWithMessage ¶
func HandleCancelError ¶
HandleCancelError modifies a context.Canceled error into a readable error that can be printed on the console
func HandleQueryTimeoutError ¶
func IsCancelledError ¶
func IsContextCanceled ¶ added in v0.19.0
func IsContextCancelledError ¶ added in v0.19.0
func PrefixError ¶
func ShowErrorWithMessage ¶
ShowErrorWithMessage displays the given error nicely with the given message
func ShowWarning ¶
func ShowWarning(warning string)
func TransformErrorToSteampipe ¶
TransformErrorToSteampipe removes the pq: and rpc error prefixes along with all the unnecessary information that comes from the drivers and libraries
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.