14 lines
340 B
Go
Raw Normal View History

2024-06-21 08:17:26 +00:00
package errors
import "fmt"
// VariableAlreadyExists is used when existing variables are used for new variable declarations.
type VariableAlreadyExists struct {
Name string
}
// Error generates the string representation.
func (err *VariableAlreadyExists) Error() string {
return fmt.Sprintf("Variable '%s' already exists", err.Name)
}