package
0.57.0
Repository: https://github.com/grafana/k6.git
Documentation: pkg.go.dev

# Packages

Package exitcodes contains the constants representing possible k6 exit error codes.

# Functions

Format formats the given error as a message (string) and a map of fields.
IsInterruptError returns true if err is *InterruptError.
WithAbortReasonIfNone can attach an abort reason to the given error, if it doesn't have one already.
WithExitCodeIfNone can attach an exit code to the given error, if it doesn't have one already.
WithHint is a helper that can attach a hint to the given error.

# Constants

These are the various reasons why a test might have been aborted prematurely.
These are the various reasons why a test might have been aborted prematurely.
These are the various reasons why a test might have been aborted prematurely.
These are the various reasons why a test might have been aborted prematurely.
TODO: rename?.
These are the various reasons why a test might have been aborted prematurely.
These are the various reasons why a test might have been aborted prematurely.
AbortTest is the reason emitted when a test script calls test.abort().

# Structs

InterruptError is an error that halts engine execution.

# Interfaces

Exception represents errors that resulted from a script exception and contain a stack trace that lead to them.
HasAbortReason is a wrapper around an error with an attached abort reason.
HasExitCode is a wrapper around an error with an attached exit code.
HasHint is a wrapper around an error with an attached user hint.

# Type aliases

AbortReason is used to signal to outputs what type of error caused the test run to be stopped prematurely.