Error(code, msg)
Function
Creates and returns an information object based on the Code enumeration and error information msg.
C++ Prototype
explicit Error(Code code, std::string msg);
Python Prototype
Error(code, msg)
Parameters
Parameter |
Mandatory/Optional |
Description |
Value |
|---|---|---|---|
code |
Mandatory |
Error code |
Code enumeration |
msg |
Mandatory |
Error message |
Valid string type |
Usage Example
Construct an information object by using the code enumeration and error information.
1 2 | msg = "message" error = Error(code, msg) |
Parent topic: Error