On 03/01/2016 03:54 PM, Robert Hanson wrote:
> It's harder than you think. There are several other messages that can come
> up besides 404 that would signify a file read failure [
> https://en.wikipedia.org/wiki/List_of_HTTP_status_codes]
>
Yes I know. I rather thought to use the very few success
It's harder than you think. There are several other messages that can come
up besides 404 that would signify a file read failure [
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes]
try/catch is primarily for *Jmol scripting errors. *Just like try/catch in
JavaScript is for JavaScript
Am 29.02.16 um 23:10 schrieb Robert Hanson:
> I believe that is the correct behavior. It's just that in the case of
> the JavaScript version of the applet you get an HTML error message, and
> in Java you get a Java error message. Your code is just printing that
> error message (fileData).
>
> But
I believe that is the correct behavior. It's just that in the case of the
JavaScript version of the applet you get an HTML error message, and in Java
you get a Java error message. Your code is just printing that error message
(fileData).
But I see. you were expecting load("") to throw an
Hi Bob,
'try / catch' doesn't seem to work in Jmol 14.4.3_2016.02.17
(application and applet at
http://chemapps.stolaf.edu/jmol/jsmol/jsmol.htm) if it is used to check
loading a text file using the 'load' function.
Example code
function loadTest(fileName) {
var fileData =
5 matches
Mail list logo