Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / March 2006



Tip: Looking for answers? Try searching our database.

Function Error Handling

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AlexCam - 28 Mar 2006 21:33 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.