func IsTimeoutError(err error) bool {
	_, ok := err.(*workflow.TimeoutError)
	return ok
}
IsTimeoutError return if the err is a TimeoutError
package cadence
import (
	"go.uber.org/cadence/.gen/go/shared"
	"go.uber.org/cadence/internal"
	"go.uber.org/cadence/workflow"
)
type (
	CustomError = internal.CustomError
	CanceledError = internal.CanceledError
)
var ErrNoData = internal.ErrNoData
func NewCustomError(reason string, details ...interface{}) *CustomError {
	return internal.NewCustomError(reason, details...)
}
func NewCanceledError(details ...interface{}) *CanceledError {
	return internal.NewCanceledError(details...)
}
func IsCustomError(err error) bool {
	_, ok := err.(*CustomError)
	return ok
}
func IsWorkflowExecutionAlreadyStartedError(err error) bool {
	_, ok := err.(*shared.WorkflowExecutionAlreadyStartedError)
	return ok
}
func IsCanceledError(err error) bool {
	_, ok := err.(*CanceledError)
	return ok
}
func IsGenericError(err error) bool {
	_, ok := err.(*workflow.GenericError)
	return ok
}