public DapException buildException ( ) { String XML = buildXML ( ) ; DapException dapex = new DapException ( XML ) . setCode ( code ) ; return dapex ; }
Convert an ErrorResponse to the equivalent DapException .