AionDS Messages and Codes Guide

AionDS Messages and Codes Guide AionDS Messages and Codes Guide

arti.vub.ac.be
from arti.vub.ac.be More from this publisher
29.06.2013 Views

AionDS runtime errors .........................................................................................................................................................................................................˝.......................................... 983 1-50 AionDS Messages and Codes SQL string is unknown The first argument to the KDL SQL statement contains a parameter that is UNKNOWN. Check the use of the parameter. .........................................................................................................................................................................................................˝.......................................... 1000 Illegal assignment At edit time, this error is reported when the user tries to use the “(*)” syntax to assign to all elements of a list; for example, (*) is 'red' At runtime, this error can occur under the following circumstances: ■ when an invalid assignment is made to a list element, such as assigning a value to list element that is not defined within a function; for example, list_pa(j) is 5 /*illegal when j is unknown*/ ■ when an assignment is made to a file parameter and the file is not open; for example, file_pa->.field is 10 /*fails if file_pa is not open*/ Note: If the knowledge base has been optimized using HPO, this error is not reported and the assignment is ignored. .........................................................................................................................................................................................................˝.......................................... 1001 Error passing parameters into the state When passing parameters into a state, AionDS performs an assignment of the arguments to the state’s input parameters. This error is reported if the assignment cannot be performed because the input parameter already has a value (in the Facts property), or because of a type inconsistency. The assignment is ignored. If the input parameter already has a value, the value is unchanged. If the input parameter does not have a value, its value remains UNKNOWN. All other parameter passing is completed normally. Be sure the input parameter and the argument are of the same type (and not just compatible ones). For instance, making one of them an integer and the

AionDS runtime errors other a positive integer (“>0”) is acceptable for the type checker, but it will produce problems if the argument evaluates to a negative integer. Avoid giving a value in the Facts property of the input parameter unless the parameter is a Value Can Change parameter. Note: If the knowledge base has been optimized using HPO, this error is not reported and the assignment is allowed. .........................................................................................................................................................................................................˝.......................................... 1002 Error returning parameters from the state When returning parameters from a state, AionDS performs an assignment of the state’s output parameters to the proper argument parameters. This error is reported if the assignment cannot be performed because the proper argument already has a value, or because of a type inconsistency. The assignment is ignored. If the argument parameter already has a value, the value is unchanged. If the argument parameter does not have a value, its value remains UNKNOWN. All other parameter passing is completed normally. Be sure the output parameter and the argument are of the same type (and not just compatible ones). For instance, making one of them an integer and the other a positive integer (“>0”) is acceptable for the type checker, but it will produce problems if the output parameter evaluates to a negative integer. The argument parameter should not have a value before the STATE step unless it is a Value Can Change parameter. Note: If the knowledge base has been optimized using HPO, this error is not reported and the assignment is allowed. .........................................................................................................................................................................................................˝.......................................... 1003 New constraint inconsistent with existing constraint A constraint operation is not consistent with the previous constraints on the parameter (for example, constraining a positive integer to be a negative value). The constraint operation is ignored. AionDS Runtime Errors 1-51

<strong>AionDS</strong> runtime errors<br />

.........................................................................................................................................................................................................˝..........................................<br />

983<br />

1-50 <strong>AionDS</strong> <strong>Messages</strong> <strong>and</strong> <strong>Codes</strong><br />

SQL string is unknown<br />

The first argument to the KDL SQL statement contains a parameter that is<br />

UNKNOWN. Check the use of the parameter.<br />

.........................................................................................................................................................................................................˝..........................................<br />

1000<br />

Illegal assignment<br />

At edit time, this error is reported when the user tries to use the “(*)” syntax<br />

to assign to all elements of a list; for example,<br />

(*) is 'red'<br />

At runtime, this error can occur under the following circumstances:<br />

■ when an invalid assignment is made to a list element, such as assigning a<br />

value to list element that is not defined within a function; for example,<br />

list_pa(j) is 5 /*illegal when j is unknown*/<br />

■ when an assignment is made to a file parameter <strong>and</strong> the file is not open;<br />

for example,<br />

file_pa->.field is 10 /*fails if file_pa is not open*/<br />

Note: If the knowledge base has been optimized using HPO, this error is not<br />

reported <strong>and</strong> the assignment is ignored.<br />

.........................................................................................................................................................................................................˝..........................................<br />

1001<br />

Error passing parameters into the state<br />

When passing parameters into a state, <strong>AionDS</strong> performs an assignment of the<br />

arguments to the state’s input parameters. This error is reported if the<br />

assignment cannot be performed because the input parameter already has a<br />

value (in the Facts property), or because of a type inconsistency.<br />

The assignment is ignored. If the input parameter already has a value, the<br />

value is unchanged. If the input parameter does not have a value, its value<br />

remains UNKNOWN. All other parameter passing is completed normally.<br />

Be sure the input parameter <strong>and</strong> the argument are of the same type (<strong>and</strong> not<br />

just compatible ones). For instance, making one of them an integer <strong>and</strong> the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!