Changeset 18452


Ignore:
Timestamp:
2009-02-02T17:35:58+13:00 (12 years ago)
Author:
max
Message:

Some additional information given on a Transformer(Configuration)Exception: what the calling method was and, if the xml files used are known, then the names of those files as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/gsdl3/util/XMLTransformer.java

    r18435 r18452  
    180180        }
    181181        catch (TransformerConfigurationException e) {
    182             return transformError("couldn't create transformer object", e);
     182            return transformError("XMLTransformer.transform(Doc, Doc, HashMap, Doc)"
     183                + "\ncouldn't create transformer object", e);
    183184        }
    184185        catch (TransformerException e) {
    185             return transformError("couldn't transform the source", e);
     186            return transformError("XMLTransformer.transform(Doc, Doc, HashMap, Doc)"
     187                + "\ncouldn't transform the source", e);
    186188        }
    187189    }
     
    195197        return result.getNode().getFirstChild();
    196198    } catch (TransformerConfigurationException e) {
    197             return transformError("couldn't create transformer object", e);
     199            return transformError("XMLTransformer.transform(File, File)"
     200                + "\ncouldn't create transformer object for files\n"
     201                + stylesheet + "\n" + source, e);
    198202    }
    199203    catch (TransformerException e) {
    200         return transformError("couldn't transform the source", e);
     204        return transformError("XMLTransformer.transform(File, File)"
     205                + "\ncouldn't transform the source for files\n"
     206                + stylesheet + "\n" + source, e);
    201207    }   
    202208 }
     
    210216            return result.getNode().getFirstChild();
    211217        } catch (TransformerConfigurationException e) {
    212             return transformError("couldn't create transformer object", e);
     218            return transformError("XMLTransformer.transform(File, File, Doc)"
     219                + "\ncouldn't create transformer object for files\n"
     220                + stylesheet + "\n" + source, e);
    213221        }
    214222        catch (TransformerException e) {
    215             return transformError("couldn't transform the source", e);
     223            return transformError("XMLTransformer.transform(File, File, Doc)"
     224                + "\ncouldn't transform the source for files\n"
     225                + stylesheet + "\n" + source, e);
    216226        }   
    217227    }
Note: See TracChangeset for help on using the changeset viewer.