All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.insee.eno.exception.Utils Maven / Gradle / Ivy

Go to download

Eno is a tool that generates survey questionnaires starting from their formal description in DDI

There is a newer version: 2.10.2
Show newest version
package fr.insee.eno.exception;

import net.sf.saxon.trans.XPathException;

public class Utils {

    public static String getErrorLocation(String styleSheet, Exception e){
        String errorMessage="";
        try{
            String location = ((XPathException) e).getLocationAsString();
            errorMessage += String.format("Error in :%s %s", styleSheet, location);
        } catch (Exception exception){
        }
        return errorMessage;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy