13 lines
290 B
Go
13 lines
290 B
Go
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}
|
|
}
|