Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppError ¶
type AppError struct {
Code Code `json:"code"` // programmatic category
Msg string `json:"msg"` // safe, user-presentable summary
Err error `json:"err"` // wrapped cause (can be nil)
}
AppError is an app defined and processed error object
type Code ¶
type Code int
const ( OK Code = iota Internal FlowNotFound StepNotFound EmptyFlows StepAlreadyExists PromptError UserAborted OperationFailed ConfigFileNotFound ConfigFileExistsError ErrInvalidInput MissingRequiredFlag AssertionExpressionParsingFailure InvalidTarget // File operation errors FileReadError FileWriteError FileNotFound // Flow operation errors FlowExecutionFailed FlowAlreadyExists FlowRemovalError FlowUpdateError // Step operation errors StepUnmarshalError StepMarshalError StepExecutionFailed StepRequestFailed StepRequestBuildFailed StepRequestProcessingFailed StepResponseReadFailed StepRequestDeadlineExceeded StepRequestAssertionFailed StepRequestReturnedNotFound StepResponseEmpty StepRequestStatusMismatch StepRequestResponseAssertionFailed StepRequestResponseParsingFailure StepRequestResponseKeyNotFound StepRequestResponseKeyForbidden StepRequestResponseValueMismatch StepExportFailed BeforeRunFailed AfterRunFailed // Config errors ConfigCreationError ConfigMarshalError ConfigUnmarshalError // Network errors NetworkError ConnectionFailed TimeoutError // Validation errors ValidationError // HTTP errors HTTPError // JSON errors JSONParseError // Authentication errors AuthenticationError // JSONPath validation errors JSONPathValidationError // Exporting errors InvalidExportFormat )
func (Code) IsUserError ¶
Click to show internal directories.
Click to hide internal directories.