16 lines
294 B
Go
16 lines
294 B
Go
|
package errors
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
type SecretExistsError struct {
|
||
|
secret string
|
||
|
}
|
||
|
|
||
|
func (e *SecretExistsError) Error() string {
|
||
|
return fmt.Sprintf("secret %s already exists", e.secret)
|
||
|
}
|
||
|
|
||
|
func NewSecretExsistsError(secret string) *SecretExistsError {
|
||
|
return &SecretExistsError{secret: secret}
|
||
|
}
|