File access error handling: Difference between revisions

From Planimate Knowledge Base
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
Line 1: Line 1:
The change object file access popup has an attref called, "Error Result"
The change object file access popup has an attref called, "Error Result"  


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


If it is left at its default value of "Null" (the Null system attribute)<br /> then a file access error will stop the run, as current. If it is pointed<br /> at an attribute, then instead of the model stopping, the attribute is set<br /> to the following value after the file operation completes:
<br> -1&nbsp;: user cancelled selecting a file (with browse before load/save option on) or chose not to overwrite an existing file<br> 0&nbsp;: No Error<br> 1&nbsp;: Error opening file<br> 2&nbsp;: EOF occured while reading the file<br> 3&nbsp;: Error renaming a written temporary file to its proper name<br> 4&nbsp;: Incomplete row in table data<br> 5&nbsp;: Data contains unknown label<br> 6&nbsp;: Data does not match expected value format<br> 7&nbsp;: Data did not decode as a plain number<br> 8&nbsp;: FATAL error - platform will terminate run soon<br> 9&nbsp;: Unknown error reason (catch all)


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


----
----


<br>


<font size="2">idkbase note 59</font>


<font size="2">idkbase note 59</font>
[[Category:Object/Change]] [[Category:Data/Exchange]]
 
[[Category:Object/Change]]
[[Category:Data/Exchange]]

Latest revision as of 16:16, 3 November 2008

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