Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTimeout = &ActionFailure{ Reason: "timeout", } ErrConnectionClosed = &ActionFailure{ Reason: "connection closed", } )
Functions ¶
func HandleConnectionFailure ¶
func IsConnectionClosed ¶
Types ¶
type ActionFailure ¶
type ActionFailure struct {
Reason string
}
func Fail ¶
func Fail(reason string) *ActionFailure
func Failf ¶
func Failf(format string, a ...interface{}) *ActionFailure
func (*ActionFailure) Error ¶
func (e *ActionFailure) Error() string
type ActionSkip ¶
type ActionSkip struct {
Reason string
}
func Skip ¶
func Skip(reason string) *ActionSkip
func Skipf ¶
func Skipf(format string, a ...interface{}) *ActionSkip
func (*ActionSkip) Error ¶
func (e *ActionSkip) Error() string
Click to show internal directories.
Click to hide internal directories.