github.com/mponton/terratest@v0.44.0/modules/collections/errors.go (about) 1 package collections 2 3 import "fmt" 4 5 // SliceValueNotFoundError is returned when a provided values file input is not found on the host path. 6 type SliceValueNotFoundError struct { 7 sourceString string 8 } 9 10 func (err SliceValueNotFoundError) Error() string { 11 return fmt.Sprintf("Could not resolve requested slice value from string %s", err.sourceString) 12 } 13 14 // NewSliceValueNotFoundError creates a new slice found error 15 func NewSliceValueNotFoundError(sourceString string) SliceValueNotFoundError { 16 return SliceValueNotFoundError{sourceString} 17 }