errors

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package errors provides structured error types for TerraCi.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigError

type ConfigError struct {
	Path string
	Err  error
}

ConfigError represents a configuration loading or validation error.

func (*ConfigError) Error

func (e *ConfigError) Error() string

func (*ConfigError) Unwrap

func (e *ConfigError) Unwrap() error

type CostError

type CostError struct {
	Module string
	Err    error
}

CostError represents a cost estimation error.

func (*CostError) Error

func (e *CostError) Error() string

func (*CostError) Unwrap

func (e *CostError) Unwrap() error

type GraphError

type GraphError struct {
	Cycles [][]string
}

GraphError represents a dependency graph error (e.g., cycles).

func (*GraphError) Error

func (e *GraphError) Error() string

type NoModulesError

type NoModulesError struct {
	Dir string
}

NoModulesError indicates no modules were found.

func (*NoModulesError) Error

func (e *NoModulesError) Error() string

type ParseError

type ParseError struct {
	Module string
	Err    error
}

ParseError represents an error during HCL parsing.

func (*ParseError) Error

func (e *ParseError) Error() string

func (*ParseError) Unwrap

func (e *ParseError) Unwrap() error

type PolicyError

type PolicyError struct {
	Module     string
	Violations []string
}

PolicyError represents a policy check failure.

func (*PolicyError) Error

func (e *PolicyError) Error() string

type ScanError

type ScanError struct {
	Dir string
	Err error
}

ScanError represents an error during module discovery.

func (*ScanError) Error

func (e *ScanError) Error() string

func (*ScanError) Unwrap

func (e *ScanError) Unwrap() error

Jump to

Keyboard shortcuts

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