Sagi Dayan
693350fa49
All checks were successful
Codespell / Check for spelling errors (push) Successful in 23s
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
15 lines
313 B
Go
15 lines
313 B
Go
package errors
|
|
|
|
import "fmt"
|
|
|
|
type EnvironmentExistsError struct {
|
|
name string
|
|
}
|
|
|
|
func (e *EnvironmentExistsError) Error() string {
|
|
return fmt.Sprintf("environment %s already exists", e.name)
|
|
}
|
|
|
|
func NewEnvironmentExistsError(name string) *EnvironmentExistsError {
|
|
return &EnvironmentExistsError{name: name}
|
|
}
|