File access error handling

From Planimate Knowledge Base
Revision as of 16:16, 3 November 2008 by Tony.Griffith (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The change object file access popup has an attref called, "Error Result"


If it is left at its default value of "Null" (the Null system attribute)
then a file access error will stop the run, as current. If it is pointed
at an attribute, then instead of the model stopping, the attribute is set
to the following value after the file operation completes:


-1 : user cancelled selecting a file (with browse before load/save option on) or chose not to overwrite an existing file
0 : No Error
1 : Error opening file
2 : EOF occured while reading the file
3 : Error renaming a written temporary file to its proper name
4 : Incomplete row in table data
5 : Data contains unknown label
6 : Data does not match expected value format
7 : Data did not decode as a plain number
8 : FATAL error - platform will terminate run soon
9 : Unknown error reason (catch all)


More error classes may be added in the future.



idkbase note 59