hErrors Enum

Startpage
Overview
Index
HAPI
   |
   HAPI.ErrorCodes
      |
      hErrors

Enum item description

Name
Value
Description
hErrorNone
0
No error.
hErrorUsage
1
This error is raised when a "trivial" violation of the interface for an API function was detected. Eg. trying to add a new decision node to a domain containing a continuous node.
hErrorIo
2
Functions that involve I/O (reading from and writing to files on disk) can raise this error. Eg. calling SaveAsHKB with file name "tour_de_france.hkb" when this file already exists and is "read-only".
hErrorNoMemory
3
There was insufficient (virtual) memory available to perform an operation.
hErrorCGLIMIDsNotSupported
4
hErrorTwice
5
hErrorInvalidName
6
hErrorCyclicNetwork
7
hErrorSizeTooLarge
8
hErrorFastRetraction
9
A fast-retraction propagation failed due to logical relations within the domain model.
hErrorRounding
10
hErrorBadKbPassword
11
hErrorBadKbVersion
12
hErrorKbFormat
hErrorNotCompiled
14
hErrorInvalidProbabilityPotential
15
hErrorChainGraph
16
hErrorEnumeration
17
hErrorInvalidEvidence
27
hErrorNoEquilibrium
18
hErrorLowDensity
19
hErrorZeroVariance
20
hErrorInconsistencyOrUnderflow
21
Some probability table has degenerated into a table with all values equal to zero. This is most likely due to conflict in evidence (evidence which according to the described model is not possible). Theoretically, it can also be caused by underflow in propagation, but this is almost impossible in practical situations.
hErrorOverflow
22
Overflow has occured during propagation. A very unlikely error (caused by operations trying to avoid underflow).
hErrorCgEvidenceIncorporated
23
hErrorNormalization
24
hErrorCompressed
25
Some operations cannot be performed when a domain has been compressed (see Compress). Calling them anyway will result in ths error.
hErrorTableTooLarge
26
hErrorCaseStateTooLarge
28
hErrorNoValue
29
hErrorParse
30
hErrorLocale
31
hErrorInvalidExpression
32
hErrorSyntax
33
hErrorDivisionByZero
34
hErrorInappropriateArguments
35
hErrorComputationFailed
36
hErrorInsufficientStateRange
37
hErrorInvalidStateValues
38
hErrorCyclicInstanceHierarchy
39
hErrorIllegalBinding
40
hErrorInvalidLicense
41
hErrorExpiredLicense
42
hErrorDemo
43
hErrorJni
44
hErrorError
45
hErrorSvrFileNotFound
1001
hErrorSvrCouldNotOpenFile
1002
hErrorSvrNoSuchUserAttribute
1003
hErrorSvrArgumentNothing
1004
An argument which should not be Nothing was Nothing.
hErrorSvrIndexOutOfBounds
1005
hErrorSvrObjectNotValid
1006
hErrorSvrInternal
1100

Description

The hErrors enumeration type lists some of the errors that the HUGINAPI ActiveX server can raise. When the server raises an error, it adds the global vbObjectError constant to the error. Eg. if the a function runs out of necessary memory, it raises an error with error code: (hErrorNoMemory + vbObjectError) = (3 + vbObjectError). A number of undocumented errors can be raised. They will always come with a description in the Err.Description property.

HUGIN Expert A/S, 2008 - comments to activex@hugin.com