fr.insee.eno.exception.Utils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eno-core Show documentation
Show all versions of eno-core Show documentation
Eno is a tool that generates survey questionnaires starting from their formal description in DDI
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;
}
}