File: error.go

package info (click to toggle)
golang-github-xdg-go-stringprep 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 308 kB
  • sloc: makefile: 2
file content (14 lines) | stat: -rw-r--r-- 273 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)
}