Example #1
0
func (this *HttpResponse) SendError(err query.Error) {
	switch err.Level() {
	case query.EXCEPTION:
		this.err = err
	case query.WARNING:
		this.warnings = append(this.warnings, err)
	case query.INFO:
		this.info = append(this.info, err)
	}

	if err.IsFatal() {
		close(this.results)
	}
}