FIXME: use thaterror
var (
ErrNoSuchNode = New("no such node")
ErrNoSuchTemplate = New("no such template")
ErrParseTemplateFailed = New("failed to parse certain type of template")
ErrNoMoreTemplateInSerialTemplate = New("no more template could schedule in serial template")
)
type NoMoreTemplateInSerialTemplateError struct {
Op string
Err error
WorkflowName string
TemplateName string
NodeName string
}
func NewNoMoreTemplateInSerialTemplateError(op, workflowName, templateName, nodeName string) *NoMoreTemplateInSerialTemplateError
func (e *NoMoreTemplateInSerialTemplateError) Error() string
func (e *NoMoreTemplateInSerialTemplateError) Unwrap() error
type NoSuchTemplateError struct {
Op string
Err error
WorkflowName string
TemplateName string
AllAvailableTemplates []string
}
func NewNoSuchTemplateError(op, workflowName, templateName string) *NoSuchTemplateError
func NewNoSuchTemplateErrorInTemplates(op, templateName string, allAvailableTemplates []string) *NoSuchTemplateError
func (e *NoSuchTemplateError) Error() string
func (e *NoSuchTemplateError) Unwrap() error
type NoSuchTreeNodeError struct {
Op string
Err error
WorkflowName string
ParentNodeName string
}
func NewNoSuchTreeNodeError(op string, parentNodeName string, workflowName string) *NoSuchTreeNodeError
func (e *NoSuchTreeNodeError) Error() string
func (e *NoSuchTreeNodeError) Unwrap() error
type ParseTemplateFailedError struct {
Op string
Err error
Target string
RawType string
}
func NewParseSerialTemplateFailedError(op string, raw interface{}) *ParseTemplateFailedError
func (e *ParseTemplateFailedError) Error() string
func (e *ParseTemplateFailedError) Unwrap() error
type WorkflowError struct {
Message string
}
func New(message string) *WorkflowError
func (it *WorkflowError) Error() string