Sagi Dayan
29e31c5b21
All checks were successful
CI / check for spelling errors (pull_request) Successful in 21s
CI / code quality (lint/tests) (pull_request) Successful in 2m6s
CI / make sure build does not fail (pull_request) Successful in 2m22s
CI / notify-fail (pull_request) Has been skipped
CI / check for spelling errors (push) Successful in 21s
CI / code quality (lint/tests) (push) Successful in 2m4s
CI / make sure build does not fail (push) Successful in 2m24s
CI / notify-fail (push) Has been skipped
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
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}
|
|
}
|