// Code generated by xtgen; DO NOT EDIT. package xproto // Error codes: wire error codes. const ( BadRequest uint8 = 1 BadValue uint8 = 2 BadWindow uint8 = 3 BadPixmap uint8 = 4 BadAtom uint8 = 5 BadCursor uint8 = 6 BadFont uint8 = 7 BadMatch uint8 = 8 BadDrawable uint8 = 9 BadAccess uint8 = 10 BadAlloc uint8 = 11 BadColormap uint8 = 12 BadGContext uint8 = 13 BadIDChoice uint8 = 14 BadName uint8 = 15 BadLength uint8 = 16 BadImplementation uint8 = 17 ) var errorNames = [...]string{"", "BadRequest", "BadValue", "BadWindow", "BadPixmap", "BadAtom", "BadCursor", "BadFont", "BadMatch", "BadDrawable", "BadAccess", "BadAlloc", "BadColormap", "BadGContext", "BadIDChoice", "BadName", "BadLength", "BadImplementation"} // ErrorName returns the name of an error code (wire error codes), or "" when unknown. func ErrorName(code uint8) string { if int(code) < len(errorNames) { return errorNames[code] } return "" }