mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-28 21:09:17 +02:00
20 lines
430 B
Go
20 lines
430 B
Go
// Code created by gotmpl. DO NOT MODIFY.
|
|
// source: internal/shared/internaltest/errors.go.tmpl
|
|
|
|
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package internaltest // import "go.opentelemetry.io/otel/sdk/internal/internaltest"
|
|
|
|
type TestError string
|
|
|
|
var _ error = TestError("")
|
|
|
|
func NewTestError(s string) error {
|
|
return TestError(s)
|
|
}
|
|
|
|
func (e TestError) Error() string {
|
|
return string(e)
|
|
}
|