Hi, I'm using Simple Objects in Java to process some info, but when an error is
raised I want to display the error message in my flash interface, I'm using
something like this...
JAVA:
public int getDBParams(String DB) throws Exception {
Properties dbProps = new Properties();
try {
dbProps.load(new FileInputStream(BD+".properties"));
String cnxURL = dbProps.getProperty("URL");
String cnxDRV = dbProps.getProperty("DRV");
}
catch (Exception e) {
throw new Exception(e.toString());
}
return 1;
}
ACTIONSCRIPT:
function getDBParams_Status( error ) {
lbProg.text = "Error: "+error.toString();
}
on exec, I'm getting "" but I want to display the message error... Any ideas?
theSaj - 31 Mar 2006 06:02 GMT
"Connection Error: " + obj.Description