IntellePret Documentation
IntellePret Error Codes. IntellePret returns standard HRESULT codes to report errors encountered. In addition to the standard code, IntellePret also returns custom HRESULTS. These HRESULTS have special meaning only to the IntellePret component. |
Standard HRESULT s |
Description |
| E_INVALIDARG 0x80070057L |
An invalid argument was passed to the component. In most cases using IntellePret from VB should not encounter this error. |
| E_OUTOFMEMORY 0x8007000EL |
Not enough memory is available. You may be able to close other applications and continue. |
| E_FAIL 0x80000008L |
This is general failure and signals an unexpected error. This is a serious error and should be reported to Intellessence. Please include the IntellePret program which caused this error. |
IntellePret specific HRESULTs |
Description |
| E_RUNTIME_STACK_ERROR 0x80080001 |
An error occurred during the execution of the prepared program. This is a unexpected error and should be reported to Intellessence. Please include the IntellePret program which caused the error. |
| E_FUNCTION_SIGNATURE_MISMATCH 0x80080002 |
The parameters used to call the function do not match
the arguments defined for the function. This may be
caused by a data type mismatch, incorrect argument count
or a passing by reference error. For Example: // function F requires a single int parameter passed by reference void F(int &i) { ++i); // Called as F("Err") causes an error because a string cannot be converted to an integer F("Err"); // Called as F() or F(1, 2) causes an error because a single integer parameter is required F(); F(1,2); // Called as F(1) causes an error because the value cannot be passed by reference. // The parameter must be a variable of type int. F(100); // F(i) is accepted because it passes all the conditions of being // a single int variable parameter. int i; F(i); |
| E_FUNCTION_NOT_DEFINED 0x80080003 |
An attempt is made to call a function which is not defined. |
| E_FUNCTION_ALREADY_DEFINED 0x80080004 |
A function with the same name is defined earlier in the IntellePret program. |
| E_INVALID_FILENAME 0x80080005 |
The filename provided is invalid or a file access error has occurred. |
| E_NO_EXPRESSION_AVAILABLE 0x80080006 |
An expression is not available to prepare. Make sure that an expression is assigned to the IntellePret object. |
| E_SQUAREROOT_OF_NEGATIVE_NUMBER 0x80080006 |
An attempt is made to calculate the square root of a negative number. |
| E_GENERAL_PARSE_ERROR 0x80080008 |
An error occurred during the preparing or parsing phase of the IntellePret program. Ensure that the IntellePret program has the correct syntax. The error message associated with this error will indicate the general vicinity in the program which caused this error. |
| E_AUTHENTICATION_ERROR 0x80080009 |
IntellePret's authentication failed. The
parameters passed to the authentication method are
incorrect. Recheck to make sure that the parameters
passed are authentic. If you have not purchased the IntellePret product or have not registered it, contact Intellessence Inc. |
| E_MISSING_FILE_NAME 0x8008000A |
The filename property is empty. Ensure that a valid filename is available to make use of the FileLoad and FileSave methods. |
| E_NO_CODE_TO_EXECUTE 0x8008000B |
No code available to execute at global scope. At least some statements must be declared at global scope. If no code is defined at global scope, a function could be executed. |
| E_SYMBOL_ALREADY_DECLARED 0x8008000C |
The variable specified in the error message is declared earlier in the IntellePret expression program.. |
| E_SYMBOL_NOT_DECLARED 0x8008000D |
The variable specified in the error message is not declared in the IntellePret expression program. |
| E_PARAMETER_USED_EARLIER 0x8008000E |
The parameter specified in the error message is declared earlier in the function argument list.. |
| E_DATA_TYPE_MISMATCH 0x8008000F |
A data type mismatch occurred. Cannot perform an operation because the data types of the operands are mismatched. For Example: // This statement causes an error // because and int (1) and string ("ABC") cannot be added together i = 1 + "ABC"; |
| E_RETURN_DATA_TYPE_MISMATCH 0x80080010 |
A data type mismatch occurred. The data type of the object returned by the function is not capable of being converted to the data type declared to be returned by the function.. For Example: // This statement causes an error because the function is declared to return an int, // however the function returns a string int F() { return "ABC"; } |
| E_NOT_ALL_PATHS_RETURN 0x80080011 |
All access paths in the function do not
return a value as specified by the function return data
type. For Example: int F(int i) { if (i == 1) return i * 2; else if (i == 2) return i * 3; } All access path of this function do not return a value.(When i != 1 && i != 2). |
| E_GENERIC_DATA_TYPE_MISMATCH 0x80080012 |
An data type mismatch has occurred. This is a unexpected error and should be reported to Intellessence. Please include the IntellePret program which caused the error. |
| E_REFERENCE_VARIABLE 0x80080013 |
The value of an argument (variable) which is declared as passed by reference cannot be modified. |
| E_STRING_LITERAL 0x80080014 |
The string literal specified contains an unsupported or incomplete escape sequence. |
| E_MATH_LIBRARY 0x80080015 |
An error occurred in a call to a math
library function. Most often it is caused by parameter to
the function which are not appropriate. For Example: 10 % 0; // Will cause this error as 0 is not an appropriate parameter for the modulo function. |
Home: www.intellessence.com. Copyright © 1998 - 2000 Intellessence Inc. All rights reserved.