2023-08-09 00:15:47 -07:00
|
|
|
// Code created by gotmpl. DO NOT MODIFY.
|
|
|
|
// source: internal/shared/internaltest/errors.go.tmpl
|
|
|
|
|
2020-03-23 22:41:10 -07:00
|
|
|
// Copyright The OpenTelemetry Authors
|
2024-02-29 07:05:28 +01:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2020-03-23 22:41:10 -07:00
|
|
|
|
2021-10-29 18:34:37 +02:00
|
|
|
package internaltest // import "go.opentelemetry.io/otel/internal/internaltest"
|
2020-02-28 16:44:53 -05:00
|
|
|
|
|
|
|
type TestError string
|
|
|
|
|
|
|
|
var _ error = TestError("")
|
|
|
|
|
|
|
|
func NewTestError(s string) error {
|
|
|
|
return TestError(s)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e TestError) Error() string {
|
|
|
|
return string(e)
|
|
|
|
}
|