blob: 4634f0c4bb265a508e06f8ed1e6143e34384984a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright (c) 2025 Drew Devault <https://drewdevault.com>
package bare
import (
"errors"
"fmt"
"reflect"
)
var ErrInvalidStr = errors.New("string contains invalid UTF-8 sequences")
type UnsupportedTypeError struct {
Type reflect.Type
}
func (e *UnsupportedTypeError) Error() string {
return fmt.Sprintf("unsupported type for marshaling: %s\n", e.Type.String())
}
|