package org.musicbrainz.search.solrwriter;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement(name = "error")
@XmlType(propOrder = {"code", "message"})
public class MBError {

    private int code;
    private String message;

    @XmlElement(name = "code")
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @XmlElement(name = "message")
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}

@@ -270,16 +270,239 @@
 BError %7B
+%0A    /**%0A     * Custom XML bindings for JAXB to produce meaningful%0A     * errors compatible with MB SolrQueryWriters in XML and%0A     * JSON formats. It wraps SOLR Exceptions to a class that can%0A     * be marshalled.%0A     */
 %0A%0A    pr
@@ -573,24 +573,81 @@
 e = %22code%22)%0A
+    /**%0A     * HTTP Error code returned by SOLR.%0A     */%0A
     public i
@@ -754,24 +754,24 @@
 ode;%0A    %7D%0A%0A
-
     @XmlElem
@@ -788,24 +788,94 @@
  %22message%22)%0A
+    /**%0A     * Error string extracted from the SOLR exception%0A     */%0A
     public S

Add docstrings for MBError class