envoid/internal/errors/env_already_exists.go

14 lines
290 B
Go
Raw Normal View History

package errors
type EnvironmentExistsError struct {
name string
}
func (e *EnvironmentExistsError) Error() string {
return "environment " + e.name + " already exists"
}
func NewEnvironmentExistsError(name string) *EnvironmentExistsError {
return &EnvironmentExistsError{name: name}
}