finclip-app-manager/vendor/github.com/xdg-go/stringprep/error.go

15 lines
273 B
Go
Raw Normal View History

2023-11-02 18:36:36 +08:00
package stringprep
import "fmt"
// Error describes problems encountered during stringprep, including what rune
// was problematic.
type Error struct {
Msg string
Rune rune
}
func (e Error) Error() string {
return fmt.Sprintf("%s (rune: '\\u%04x')", e.Msg, e.Rune)
}