apperrors

package
v0.4.5-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package apperrors defines application-level error types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapabilityError

type CapabilityError struct {
	Required *sdkEntities.GrantSet
	Reason   string
}

CapabilityError indicates capability permission issue.

func NewCapabilityError

func NewCapabilityError(reason string, required *sdkEntities.GrantSet) *CapabilityError

NewCapabilityError creates a new capability error.

func (*CapabilityError) Error

func (e *CapabilityError) Error() string

type ConfigurationError

type ConfigurationError struct {
	Cause   error
	Aspect  string
	Message string
}

ConfigurationError indicates system config or setup issue.

func NewConfigurationError

func NewConfigurationError(aspect, message string, cause error) *ConfigurationError

NewConfigurationError creates a new configuration error.

func (*ConfigurationError) Error

func (e *ConfigurationError) Error() string

func (*ConfigurationError) Unwrap

func (e *ConfigurationError) Unwrap() error

type ExecutionError

type ExecutionError struct {
	Cause     error
	ControlID string
	Message   string
}

ExecutionError indicates execution failed (not validation).

func NewExecutionError

func NewExecutionError(controlID, message string, cause error) *ExecutionError

NewExecutionError creates a new execution error.

func (*ExecutionError) Error

func (e *ExecutionError) Error() string

func (*ExecutionError) Unwrap

func (e *ExecutionError) Unwrap() error

type ValidationError

type ValidationError struct {
	Field   string   // Field that failed validation
	Message string   // Error message
	Details []string // Additional details
}

ValidationError indicates profile or filter validation failed.

func NewValidationError

func NewValidationError(field, message string, details ...string) *ValidationError

NewValidationError creates a new validation error.

func (*ValidationError) Error

func (e *ValidationError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL