Not found error

Jan-Jaap van der Geer janjaap at dsv.nl
Sun Jan 12 14:01:42 GMT 2003


Hi,

I'd like to check for an error that accurs when you for example do:

*create SomeDirThatDoesntExist.File

You'll get a "Not found" error (&117D6). I'm not really sure how
I'll find the correct constant to use for that. I'm now searching
in the stronghelp page for OSLib, and I find these:

error_FILE_NOT_FOUND 0xD6

The last byte is identical, is that a coincidence? Probably,
because:

*info AFileThatDoesntExist

gives the &D6-error.

error_NOT_FOUND 0x424

That's not it I guess. However, in the description (in StrongHelp),
it says: "Not found, &0100D6", again the last byte correct...?!

Is the error just not defined? Is there a better way of finding a
match between the error and the constant defined for it in OSLib?

Is it a good way to check for the errornumbers anyway? How
futureproof is that? How certain is it that all versions of the OS
react in the same way?

Cheers,
Jan-Jaap



More information about the oslib-user mailing list