You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/api/http/errors/conflict.go

21 lines
335 B

package errors
import "errors"
type ConflictError struct {
msg string
}
func (e *ConflictError) Error() string {
return e.msg
}
func NewConflictError(msg string) *ConflictError {
return &ConflictError{msg: msg}
}
func IsConflictError(err error) bool {
var conflictError *ConflictError
return errors.As(err, &conflictError)
}