Status(code, msg)
Function
Creates and returns an information object based on the Code enumeration and error information msg.
C++ Prototype
explicit Status(Error::Code code, const std::string &msg)
Python Prototype
Status(code, msg)
Parameters
Parameter |
Mandatory/Optional |
Description |
Value |
|---|---|---|---|
code |
Mandatory |
Error code |
Enumerated type of the code. For details, see Code Enumeration. |
msg |
Mandatory |
Error message |
Valid string type |
Usage Example
Create and return an information object based on the code enumeration and error information msg.
1 2 | msg = "message" status = Status(code, msg) |
Parent topic: Status