list of error codes with their corresponding text messages

The engine.
Post Reply
AtiyehAtiyeh
Posts: 6
Joined: Mon Apr 26, 2021 10:46 pm

list of error codes with their corresponding text messages

Post by AtiyehAtiyeh »

Hi

when I work with GeNie if there's an error e.g. when updating beliefs, in the output section I can see the error number with the corresponding text message. However, when doing the same thing using smile wrappers e.g. in Python, I only see the error number. This makes it impossible to troubleshoot when using SMILE.
Would you please publish the list of error codes with their text messages? More specifically the negative numbers: https://support.bayesfusion.com/docs/SM ... dling.html
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: list of error codes with their corresponding text messages

Post by shooltz[BayesFusion] »

Below you can find the #defines from C++ SMILE headers. Note that in general different functions can return the same error code for different conditions. For example, an attempt to use the node with invalid handle will cause DSL_OUT_OF_RANGE error. Similarly, accessing the nonexisting node outcome can result in the same error.

Code: Select all

#define DSL_OKAY                   0
#define DSL_GENERAL_ERROR         (-1)
#define DSL_OUT_OF_RANGE          (-2)
#define DSL_NO_ITEM               (-3)
#define DSL_INVALID_VALUE         (-4)
#define DSL_NO_USEFUL_SAMPLES     (-5)
#define DSL_CANT_SOLVE_EQUATION   (-6)
#define DSL_CYCLE_DETECTED        (-11)
#define DSL_WRONG_NUM_STATES      (-19)
#define DSL_CONFLICTING_EVIDENCE  (-26)
#define DSL_ILLEGAL_ID            (-30)
#define DSL_DUPLICATED_ID         (-32)
#define DSL_OUT_OF_MEMORY         (-42)
#define DSL_ZERO_POTENTIAL		  (-43)
#define DSL_WRONG_NODE_TYPE       (-51)
#define DSL_WRONG_ELEMENT_TYPE    (-52)
#define DSL_INTERRUPTED           (-99)
#define DSL_FILE_READ         (-100)
#define DSL_FILE_WRITE        (-101)
#define DSL_END_OF_FILE       (-102)  
#define DSL_WRONG_FILE        (-103)
Post Reply