2024-11-22 15:29:25 +00:00
|
|
|
package errors
|
|
|
|
|
|
|
|
type EnvironmentExistsError struct {
|
|
|
|
name string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *EnvironmentExistsError) Error() string {
|
2024-12-16 18:22:58 +00:00
|
|
|
return "environment " + e.name + " already exists"
|
2024-11-22 15:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewEnvironmentExistsError(name string) *EnvironmentExistsError {
|
|
|
|
return &EnvironmentExistsError{name: name}
|
|
|
|
}
|