Hello,
I would like to perform some config file parameter checking in the xs file for some custom XDC modules. What is the best method to raise an error if a value is null, or out of bounds when building an executable?
Thanks!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I would like to perform some config file parameter checking in the xs file for some custom XDC modules. What is the best method to raise an error if a value is null, or out of bounds when building an executable?
Thanks!
norton256,
each module can implement the function validate(). The documentation for validate() contains short descriptions of $logError and $logFatal function that can be used to signal errors, and there are links to the actual documentation for these logging functions.