flex - Understanding the ActionScript API - can this statement throw an exception? -


i want know whether should wrap following statement in try catch block:

var newfile:file = file.applicationstoragedirectory.resolvepath(filename); 

if @ api reference resolvepath() , applicationstoragedirectory, mentions nothing throwing exceptions.

am understanding correctly?

i tried out. throw error if filename null. -> argumenterror: error #2007: parameter must non-null. it's better test if filename null before using try catch.


Comments