// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

package errors

type skippableErr struct {
	Err error
}

func (e skippableErr) Error() string {
	return e.Err.Error()
}

func SkippableErr(err error) skippableErr {
	return skippableErr{Err: err}
}

func IsErrorSkippable(err error) bool {
	_, ok := err.(skippableErr)
	return ok
}
