dap4/d4core/src/main/java/dap4/core/dmr/ErrorResponse.java
public DapException buildException()
    {
        String XML = buildXML();
        DapException dapex = new DapException(XML).setCode(code);
        return dapex;
    }
public DapException buildException()
    {
        String XML = buildXML();
        DapException dapex = new DapException(XML).setCode(code);
        return dapex;
    }
Convert an ErrorResponse to the equivalent DapException.
@return  DapException representation of the ErrorResponse