Code example for TransformerException

Methods: getMessage

0
        Result output = new StreamResult(sw);
        try { 
            idTransformer.transform(input, output);
            return sw.toString();
        } catch (TransformerException e) {
            return e.getMessage();
        } 
    } 
 
    /** 
     * Get the oai:resumptionToken from the response 
     *  
     * @return the oai:resumptionToken value 
     * @throws TransformerException 
     * @throws NoSuchFieldException 
     */ 
 
    public String getResumptionToken()
    throws TransformerException, NoSuchFieldException { 
        String schemaLocation = getSchemaLocation();
        if (schemaLocation.indexOf(SCHEMA_LOCATION_V2_0) != -1) {