Documentation
¶
Overview ¶
Package application contains error definitions for application layer use cases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidInput is returned when use case input validation fails. ErrInvalidInput = errors.New("invalid input") // ErrOperationFailed is returned when a use case operation fails. ErrOperationFailed = errors.New("operation failed") // ErrNotAuthorized is returned when an operation is not authorized. ErrNotAuthorized = errors.New("not authorized") )
Use case errors
Functions ¶
This section is empty.
Types ¶
type InputValidationError ¶
InputValidationError represents a validation error for use case inputs.
func NewInputValidationError ¶
func NewInputValidationError(field, message string) *InputValidationError
NewInputValidationError creates a new InputValidationError.
func (InputValidationError) Error ¶
func (e InputValidationError) Error() string
func (InputValidationError) Is ¶
func (e InputValidationError) Is(target error) bool
Is allows InputValidationError to match ErrInvalidInput with errors.Is().
type UseCaseError ¶
type UseCaseError struct {
Operation string // Use case name: "submit", "abort", "query", etc.
Message string // Human-readable description
Cause error // Underlying error (domain or infrastructure)
}
UseCaseError wraps domain/infrastructure errors with operation context. This allows handlers to understand which use case failed and why.
func NewUseCaseError ¶
func NewUseCaseError(operation, message string, cause error) *UseCaseError
NewUseCaseError creates a new UseCaseError with the given details.
func (UseCaseError) Error ¶
func (e UseCaseError) Error() string
func (UseCaseError) Is ¶
func (e UseCaseError) Is(target error) bool
Is allows UseCaseError to match ErrOperationFailed with errors.Is().
func (UseCaseError) Unwrap ¶
func (e UseCaseError) Unwrap() error
Directories
¶
| Path | Synopsis |
|---|---|
|
Package create contains the use case for creating WDL bundles.
|
Package create contains the use case for creating WDL bundles. |
|
Package workflow contains use cases for workflow management operations.
|
Package workflow contains use cases for workflow management operations. |
Click to show internal directories.
Click to hide internal directories.