client/api/error_registry.go
func (r *MapErrorRegistry) MustAddError(code int, err error) {
	if e := r.AddError(code, err); e != nil {
		panic(e)
	}
}
func (r *MapErrorRegistry) MustAddError(code int, err error) {
	if e := r.AddError(code, err); e != nil {
		panic(e)
	}
}
// MustAddError calls AddError and panics in case of an error.