func (e *Error) SetError(v interface{}) {
	b, err := json.Marshal(v)
	if err != nil {
		panic("Error.SetData: " + err.Error())
	}
	e.Data = (*json.RawMessage)(&b)
}
func (e *Error) SetError(v interface{}) {
	b, err := json.Marshal(v)
	if err != nil {
		panic("Error.SetData: " + err.Error())
	}
	e.Data = (*json.RawMessage)(&b)
}
func ( e * Error ) SetError ( v interface { } ) { b , err := json . Marshal ( v ) if err != nil { panic ( " " + err . Error ( ) ) } e . Data = ( * json . RawMessage ) ( & b ) }
// SetError sets e.Error to the JSON representation of v. If JSON
// marshaling fails, it panics.
SetError sets e . Error to the JSON representation of v . If JSON marshaling fails it panics .